From b70f3092bf3ab3263a1bad16a04c28c5d0d229a9 Mon Sep 17 00:00:00 2001 From: Airyzz <36567925+Airyzz@users.noreply.github.com> Date: Fri, 11 Oct 2024 23:29:02 +0000 Subject: [PATCH] Dont include unjoined rooms in space list (#363) --- commet/lib/client/matrix/matrix_client.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;