From c6a79f7ad0640d2128f335aebba76cbd408fc58a Mon Sep 17 00:00:00 2001 From: Marcus Hoffmann Date: Sun, 11 Feb 2024 18:36:36 +0100 Subject: [PATCH] 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. --- lib/widgets/matrix.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/widgets/matrix.dart b/lib/widgets/matrix.dart index b8ce1613d..e4ba8fb3d 100644 --- a/lib/widgets/matrix.dart +++ b/lib/widgets/matrix.dart @@ -423,6 +423,10 @@ class MatrixState extends State with WidgetsBindingObserver { store.getBool(SettingKeys.hideUnknownEvents) ?? AppConfig.hideUnknownEvents; + AppConfig.hideUnimportantStateEvents = + store.getBool(SettingKeys.hideUnimportantStateEvents) ?? + AppConfig.hideUnimportantStateEvents; + AppConfig.separateChatTypes = store.getBool(SettingKeys.separateChatTypes) ?? AppConfig.separateChatTypes;