From 94fc250751df774d8dc91331cd7ba17c3665e8c6 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Sat, 28 Oct 2023 11:35:31 +0200 Subject: [PATCH] refactor: Remove unused config --- lib/config/app_config.dart | 1 - lib/config/setting_keys.dart | 2 -- lib/widgets/matrix.dart | 6 ------ 3 files changed, 9 deletions(-) diff --git a/lib/config/app_config.dart b/lib/config/app_config.dart index 034b66c1..75fa52a1 100644 --- a/lib/config/app_config.dart +++ b/lib/config/app_config.dart @@ -42,7 +42,6 @@ abstract class AppConfig { static bool hideRedactedEvents = false; static bool hideUnknownEvents = true; static bool hideUnimportantStateEvents = true; - static bool showDirectChatsInSpaces = true; static bool separateChatTypes = false; static bool autoplayImages = true; static bool sendTypingNotifications = true; diff --git a/lib/config/setting_keys.dart b/lib/config/setting_keys.dart index 14bc6da3..e7ef7659 100644 --- a/lib/config/setting_keys.dart +++ b/lib/config/setting_keys.dart @@ -5,8 +5,6 @@ abstract class SettingKeys { static const String hideUnknownEvents = 'chat.fluffy.hideUnknownEvents'; static const String hideUnimportantStateEvents = 'chat.fluffy.hideUnimportantStateEvents'; - static const String showDirectChatsInSpaces = - 'chat.fluffy.showDirectChatsInSpaces'; static const String separateChatTypes = 'chat.fluffy.separateChatTypes'; static const String sentry = 'sentry'; static const String theme = 'theme'; diff --git a/lib/widgets/matrix.dart b/lib/widgets/matrix.dart index 90352db0..ab328e9b 100644 --- a/lib/widgets/matrix.dart +++ b/lib/widgets/matrix.dart @@ -442,12 +442,6 @@ class MatrixState extends State 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);