chore: Always show filter for messages

This commit is contained in:
Christian Kußowski 2026-01-29 18:11:54 +01:00
commit e40d9b5df2
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
6 changed files with 13 additions and 20 deletions

View file

@ -32,7 +32,6 @@ enum AppSettings<T> {
fontSizeFactor<double>('chat.fluffy.font_size_factor', 1.0), fontSizeFactor<double>('chat.fluffy.font_size_factor', 1.0),
hideRedactedEvents<bool>('chat.fluffy.hideRedactedEvents', false), hideRedactedEvents<bool>('chat.fluffy.hideRedactedEvents', false),
hideUnknownEvents<bool>('chat.fluffy.hideUnknownEvents', true), hideUnknownEvents<bool>('chat.fluffy.hideUnknownEvents', true),
separateChatTypes<bool>('chat.fluffy.separateChatTypes', false),
autoplayImages<bool>('chat.fluffy.autoplay_images', true), autoplayImages<bool>('chat.fluffy.autoplay_images', true),
sendTypingNotifications<bool>('chat.fluffy.send_typing_notifications', true), sendTypingNotifications<bool>('chat.fluffy.send_typing_notifications', true),
sendPublicReadReceipts<bool>('chat.fluffy.send_public_read_receipts', true), sendPublicReadReceipts<bool>('chat.fluffy.send_public_read_receipts', true),

View file

@ -115,7 +115,7 @@ class BootstrapDialogState extends State<BootstrapDialog> {
await client.accountDataLoading; await client.accountDataLoading;
await client.userDeviceKeysLoading; await client.userDeviceKeysLoading;
while (client.prevBatch == null) { while (client.prevBatch == null) {
await client.onSync.stream.first; await client.onSyncStatus.stream.first;
} }
await client.updateUserDeviceKeys(); await client.updateUserDeviceKeys();
_wipe = wipe; _wipe = wipe;

View file

@ -374,9 +374,7 @@ class ChatListController extends State<ChatList>
@override @override
void initState() { void initState() {
activeFilter = AppSettings.separateChatTypes.value activeFilter = ActiveFilter.allChats;
? ActiveFilter.messages
: ActiveFilter.allChats;
_initReceiveSharingIntent(); _initReceiveSharingIntent();
_activeSpaceId = widget.activeSpace; _activeSpaceId = widget.activeSpace;

View file

@ -140,18 +140,17 @@ class ChatListViewBody extends StatelessWidget {
scrollDirection: Axis.horizontal, scrollDirection: Axis.horizontal,
children: children:
[ [
if (AppSettings.separateChatTypes.value) ActiveFilter.allChats,
ActiveFilter.messages
else
ActiveFilter.allChats,
ActiveFilter.groups,
ActiveFilter.unread,
if (spaceDelegateCandidates.isNotEmpty && if (spaceDelegateCandidates.isNotEmpty &&
!AppSettings !AppSettings
.displayNavigationRail .displayNavigationRail
.value && .value &&
!FluffyThemes.isColumnMode(context)) !FluffyThemes.isColumnMode(context))
ActiveFilter.spaces, ActiveFilter.spaces,
ActiveFilter.unread,
ActiveFilter.groups,
ActiveFilter.messages,
] ]
.map( .map(
(filter) => Padding( (filter) => Padding(

View file

@ -349,10 +349,6 @@ class SettingsStyleView extends StatelessWidget {
title: L10n.of(context).presencesToggle, title: L10n.of(context).presencesToggle,
setting: AppSettings.showPresences, setting: AppSettings.showPresences,
), ),
SettingsSwitchListTile.adaptive(
title: L10n.of(context).separateChatTypes,
setting: AppSettings.separateChatTypes,
),
SettingsSwitchListTile.adaptive( SettingsSwitchListTile.adaptive(
title: L10n.of(context).displayNavigationRail, title: L10n.of(context).displayNavigationRail,
setting: AppSettings.displayNavigationRail, setting: AppSettings.displayNavigationRail,

View file

@ -21,7 +21,8 @@ PODS:
- FlutterMacOS - FlutterMacOS
- flutter_new_badger (0.0.1): - flutter_new_badger (0.0.1):
- FlutterMacOS - FlutterMacOS
- flutter_secure_storage_macos (6.1.3): - flutter_secure_storage_darwin (10.0.0):
- Flutter
- FlutterMacOS - FlutterMacOS
- flutter_vodozemac (0.0.1): - flutter_vodozemac (0.0.1):
- FlutterMacOS - FlutterMacOS
@ -89,7 +90,7 @@ DEPENDENCIES:
- file_selector_macos (from `Flutter/ephemeral/.symlinks/plugins/file_selector_macos/macos`) - file_selector_macos (from `Flutter/ephemeral/.symlinks/plugins/file_selector_macos/macos`)
- flutter_local_notifications (from `Flutter/ephemeral/.symlinks/plugins/flutter_local_notifications/macos`) - flutter_local_notifications (from `Flutter/ephemeral/.symlinks/plugins/flutter_local_notifications/macos`)
- flutter_new_badger (from `Flutter/ephemeral/.symlinks/plugins/flutter_new_badger/macos`) - flutter_new_badger (from `Flutter/ephemeral/.symlinks/plugins/flutter_new_badger/macos`)
- flutter_secure_storage_macos (from `Flutter/ephemeral/.symlinks/plugins/flutter_secure_storage_macos/macos`) - flutter_secure_storage_darwin (from `Flutter/ephemeral/.symlinks/plugins/flutter_secure_storage_darwin/darwin`)
- flutter_vodozemac (from `Flutter/ephemeral/.symlinks/plugins/flutter_vodozemac/macos`) - flutter_vodozemac (from `Flutter/ephemeral/.symlinks/plugins/flutter_vodozemac/macos`)
- flutter_web_auth_2 (from `Flutter/ephemeral/.symlinks/plugins/flutter_web_auth_2/macos`) - flutter_web_auth_2 (from `Flutter/ephemeral/.symlinks/plugins/flutter_web_auth_2/macos`)
- flutter_webrtc (from `Flutter/ephemeral/.symlinks/plugins/flutter_webrtc/macos`) - flutter_webrtc (from `Flutter/ephemeral/.symlinks/plugins/flutter_webrtc/macos`)
@ -139,8 +140,8 @@ EXTERNAL SOURCES:
:path: Flutter/ephemeral/.symlinks/plugins/flutter_local_notifications/macos :path: Flutter/ephemeral/.symlinks/plugins/flutter_local_notifications/macos
flutter_new_badger: flutter_new_badger:
:path: Flutter/ephemeral/.symlinks/plugins/flutter_new_badger/macos :path: Flutter/ephemeral/.symlinks/plugins/flutter_new_badger/macos
flutter_secure_storage_macos: flutter_secure_storage_darwin:
:path: Flutter/ephemeral/.symlinks/plugins/flutter_secure_storage_macos/macos :path: Flutter/ephemeral/.symlinks/plugins/flutter_secure_storage_darwin/darwin
flutter_vodozemac: flutter_vodozemac:
:path: Flutter/ephemeral/.symlinks/plugins/flutter_vodozemac/macos :path: Flutter/ephemeral/.symlinks/plugins/flutter_vodozemac/macos
flutter_web_auth_2: flutter_web_auth_2:
@ -194,7 +195,7 @@ SPEC CHECKSUMS:
file_selector_macos: 9e9e068e90ebee155097d00e89ae91edb2374db7 file_selector_macos: 9e9e068e90ebee155097d00e89ae91edb2374db7
flutter_local_notifications: 4bf37a31afde695b56091b4ae3e4d9c7a7e6cda0 flutter_local_notifications: 4bf37a31afde695b56091b4ae3e4d9c7a7e6cda0
flutter_new_badger: 6fe9bf7e42793a164032c21f164c0ad9985cd0f2 flutter_new_badger: 6fe9bf7e42793a164032c21f164c0ad9985cd0f2
flutter_secure_storage_macos: 7f45e30f838cf2659862a4e4e3ee1c347c2b3b54 flutter_secure_storage_darwin: acdb3f316ed05a3e68f856e0353b133eec373a23
flutter_vodozemac: fd2ea9cb3e2a37beaac883a369811fbfe042fc53 flutter_vodozemac: fd2ea9cb3e2a37beaac883a369811fbfe042fc53
flutter_web_auth_2: 62b08da29f15a20fa63f144234622a1488d45b65 flutter_web_auth_2: 62b08da29f15a20fa63f144234622a1488d45b65
flutter_webrtc: 718eae22a371cd94e5d56aa4f301443ebc5bb737 flutter_webrtc: 718eae22a371cd94e5d56aa4f301443ebc5bb737