diff --git a/lib/pages/forward/forward.dart b/lib/pages/forward/forward.dart index cb6a5fe257..da3b8afa55 100644 --- a/lib/pages/forward/forward.dart +++ b/lib/pages/forward/forward.dart @@ -75,7 +75,7 @@ class ForwardController extends State with SearchRecentChat { selectedRoomIdNotifier.value = id; } - final ActiveFilter _activeFilterAllChats = ActiveFilter.allChats; + final ActiveFilter _activeFilterAllChats = ActiveFilter.acceptedChats; List get filteredRoomsForAll => Matrix.of(context).client.filteredRoomsForAll(_activeFilterAllChats); diff --git a/lib/pages/share/share.dart b/lib/pages/share/share.dart index 8a102b0038..c70c655f8f 100644 --- a/lib/pages/share/share.dart +++ b/lib/pages/share/share.dart @@ -125,7 +125,7 @@ class ShareController extends State } } - final ActiveFilter _activeFilterAllChats = ActiveFilter.allChats; + final ActiveFilter _activeFilterAllChats = ActiveFilter.acceptedChats; List get filteredRoomsForAll => Matrix.of(context).client.filteredRoomsForAll(_activeFilterAllChats); diff --git a/lib/presentation/enum/chat_list/chat_list_enum.dart b/lib/presentation/enum/chat_list/chat_list_enum.dart index b2bbb73ae3..870738f756 100644 --- a/lib/presentation/enum/chat_list/chat_list_enum.dart +++ b/lib/presentation/enum/chat_list/chat_list_enum.dart @@ -21,6 +21,7 @@ enum PopupMenuAction { enum ActiveFilter { allChats, + acceptedChats, groups, messages, spaces; @@ -37,6 +38,9 @@ enum ActiveFilter { !room.isSpace && room.isDirectChat && !room.isStoryRoom; case ActiveFilter.spaces: return (r) => r.isSpace; + case ActiveFilter.acceptedChats: + return (room) => + !room.isSpace && !room.isStoryRoom && !room.isInvitation; } } }