feat: Add "Show related DMs in spaces" settings

This commit is contained in:
20kdc 2022-04-09 06:10:53 +00:00 committed by Krille Fear
commit 4398c305d2
6 changed files with 20 additions and 1 deletions

View file

@ -480,6 +480,10 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
store
.getItemBool(SettingKeys.hideUnknownEvents, AppConfig.hideUnknownEvents)
.then((value) => AppConfig.hideUnknownEvents = value);
store
.getItemBool(SettingKeys.showDirectChatsInSpaces,
AppConfig.showDirectChatsInSpaces)
.then((value) => AppConfig.showDirectChatsInSpaces = value);
store
.getItemBool(SettingKeys.separateChatTypes, AppConfig.separateChatTypes)
.then((value) => AppConfig.separateChatTypes = value);