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

@ -77,6 +77,12 @@ class SettingsChatView extends StatelessWidget {
),
),
const Divider(height: 1),
SettingsSwitchListTile.adaptive(
title: L10n.of(context)!.showDirectChatsInSpaces,
onChanged: (b) => AppConfig.showDirectChatsInSpaces = b,
storeKey: SettingKeys.showDirectChatsInSpaces,
defaultValue: AppConfig.showDirectChatsInSpaces,
),
SettingsSwitchListTile.adaptive(
title: L10n.of(context)!.separateChatTypes,
onChanged: (b) => AppConfig.separateChatTypes = b,