use ids for matching instead

This commit is contained in:
Henry Hiles 2026-02-11 12:20:20 -05:00
commit e7ad21df82
No known key found for this signature in database

View file

@ -40,8 +40,11 @@ class SpacesController extends Notifier<IList<Space>> {
final allNestedRoomIds = childRoomsBySpaceId.values
.expand((l) => l)
.map(
(room) =>
rooms.entries.firstWhere((entry) => entry.value == room).key,
(room) => rooms.entries
.firstWhere(
(entry) => entry.value.metadata?.id == room.metadata?.id,
)
.key,
)
.toISet();