forked from Nexus/nexus
WIP subspace support
This commit is contained in:
parent
7e7e6877e2
commit
6e02cce84f
5 changed files with 54 additions and 25 deletions
|
|
@ -84,9 +84,15 @@ class JoinDialog extends HookWidget {
|
|||
space?.id ??
|
||||
spaces
|
||||
.firstWhere(
|
||||
(space) => space.children.any(
|
||||
(child) => child.metadata?.id == id,
|
||||
),
|
||||
(space) =>
|
||||
space.children.any(
|
||||
(child) =>
|
||||
child.metadata?.id == id,
|
||||
) ||
|
||||
space.subSpaces.any(
|
||||
(child) =>
|
||||
child.room.metadata?.id == id,
|
||||
),
|
||||
)
|
||||
.id,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue