fix: display space invites in chat list

This commit is contained in:
Christian Pauly 2021-08-04 09:49:34 +02:00
parent 9a78b8ad85
commit e7044e0e67

View File

@ -188,7 +188,7 @@ class ChatListController extends State<ChatList> {
} }
bool roomCheck(Room room) { bool roomCheck(Room room) {
if (room.isSpace) return false; if (room.isSpace && room.membership == Membership.join) return false;
if (activeSpaceId != null) { if (activeSpaceId != null) {
final space = Matrix.of(context).client.getRoomById(activeSpaceId); final space = Matrix.of(context).client.getRoomById(activeSpaceId);
if (space.spaceChildren?.any((child) => child.roomId == room.id) ?? if (space.spaceChildren?.any((child) => child.roomId == room.id) ??