Skip to content

Commit

Permalink
Dont include unjoined rooms in space list (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
Airyzz authored Oct 11, 2024
1 parent f0424a0 commit b70f309
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commet/lib/client/matrix/matrix_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b70f309

Please sign in to comment.