use ids for matching instead
This commit is contained in:
parent
c652e7199e
commit
e7ad21df82
1 changed files with 5 additions and 2 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue