fix: exclude space from chat search results (#1617)
This commit is contained in:
parent
b982f4eec7
commit
d408910fbb
2 changed files with 7 additions and 1 deletions
|
|
@ -426,7 +426,7 @@
|
|||
},
|
||||
"chatHasBeenAddedToThisSpace": "Chat has been added to this space",
|
||||
"@chatHasBeenAddedToThisSpace": {},
|
||||
"chats": "Group Chats",
|
||||
"chats": "Chats",
|
||||
"@chats": {
|
||||
"type": "text",
|
||||
"placeholders": {}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue