chore: if space is selected, only show chats within that space in activity chat selelction dialog
This commit is contained in:
parent
4cd3587ba4
commit
27b70f9a76
1 changed files with 7 additions and 0 deletions
|
|
@ -69,6 +69,13 @@ class ActivityRoomSelectionState extends State<ActivityRoomSelection> {
|
|||
return a.name.toLowerCase().compareTo(b.name.toLowerCase());
|
||||
});
|
||||
|
||||
final room = widget.controller.room;
|
||||
if (room != null && room.isSpace) {
|
||||
_launchableRooms = _launchableRooms.where((r) {
|
||||
return room.spaceChildren.any((child) => child.roomId == r.id);
|
||||
}).toList();
|
||||
}
|
||||
|
||||
_hasBotDM = Matrix.of(context).client.rooms.any((room) {
|
||||
if (room.isDirectChat &&
|
||||
room.directChatMatrixID == BotName.byEnvironment) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue