fixup weird behavior when leaving spaces

This commit is contained in:
Henry Hiles 2026-10-15 19:50:35 -04:00
commit 485383e99c
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -77,7 +77,10 @@ class SpacesController extends AsyncNotifier<IList<Space>> {
);
}
final spaces = topLevelSpaceIds.map(buildSpace).toIList();
final spaces = topLevelSpaceIds
.where(rooms.containsKey)
.map(buildSpace)
.toIList();
final usedRooms = spaces
.expand(