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
|
final allNestedRoomIds = childRoomsBySpaceId.values
|
||||||
.expand((l) => l)
|
.expand((l) => l)
|
||||||
.map(
|
.map(
|
||||||
(room) =>
|
(room) => rooms.entries
|
||||||
rooms.entries.firstWhere((entry) => entry.value == room).key,
|
.firstWhere(
|
||||||
|
(entry) => entry.value.metadata?.id == room.metadata?.id,
|
||||||
|
)
|
||||||
|
.key,
|
||||||
)
|
)
|
||||||
.toISet();
|
.toISet();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue