fix: properly initialize hideUnimportantStateEvents setting

This setting was not applied on app restart but always initialized to
the default value. The only way change this was to go into settings and
change the toggle twice after an app restart.
pull/890/head
Marcus Hoffmann 2 years ago
parent aa68e8fe3b
commit c6a79f7ad0

@ -423,6 +423,10 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
store.getBool(SettingKeys.hideUnknownEvents) ?? store.getBool(SettingKeys.hideUnknownEvents) ??
AppConfig.hideUnknownEvents; AppConfig.hideUnknownEvents;
AppConfig.hideUnimportantStateEvents =
store.getBool(SettingKeys.hideUnimportantStateEvents) ??
AppConfig.hideUnimportantStateEvents;
AppConfig.separateChatTypes = AppConfig.separateChatTypes =
store.getBool(SettingKeys.separateChatTypes) ?? store.getBool(SettingKeys.separateChatTypes) ??
AppConfig.separateChatTypes; AppConfig.separateChatTypes;

Loading…
Cancel
Save