fix: exclude space from chat search results (#1617)

This commit is contained in:
ggurdin 2025-01-28 10:54:19 -05:00 committed by GitHub
parent b982f4eec7
commit d408910fbb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -426,7 +426,7 @@
},
"chatHasBeenAddedToThisSpace": "Chat has been added to this space",
"@chatHasBeenAddedToThisSpace": {},
"chats": "Group Chats",
"chats": "Chats",
"@chats": {
"type": "text",
"placeholders": {}

View file

@ -90,6 +90,12 @@ class ChatListItem extends StatelessWidget {
return const SizedBox.shrink();
}
// #Pangea
if (filter != null && filter.isNotEmpty && room.isSpace) {
return const SizedBox.shrink();
}
// Pangea#
final needLastEventSender = lastEvent == null
? false
: room.getState(EventTypes.RoomMember, lastEvent.senderId) == null;