diff --git a/commet/lib/client/matrix/matrix_client.dart b/commet/lib/client/matrix/matrix_client.dart index 3c8a41df..1a218b8f 100644 --- a/commet/lib/client/matrix/matrix_client.dart +++ b/commet/lib/client/matrix/matrix_client.dart @@ -342,7 +342,8 @@ class MatrixClient extends Client { } void _updateSpacesList() { - var allSpaces = _matrixClient.rooms.where((element) => element.isSpace); + var allSpaces = _matrixClient.rooms.where((element) => + element.isSpace && element.membership == matrix.Membership.join); for (var space in allSpaces) { if (hasSpace(space.id)) continue;