add "join-room" segment

This commit is contained in:
RMidhunSuresh 2022-09-12 14:49:05 +05:30
parent cfbd0672c5
commit 413ba3279f
No known key found for this signature in database

View File

@ -51,7 +51,7 @@ function allowsChild(parent: Segment<SegmentType> | undefined, child: Segment<Se
// allowed root segments
return type === "login" || type === "session" || type === "sso" || type === "logout";
case "session":
return type === "room" || type === "rooms" || type === "settings" || type === "create-room";
return type === "room" || type === "rooms" || type === "settings" || type === "create-room" || type === "join-room";
case "rooms":
// downside of the approach: both of these will control which tile is selected
return type === "room" || type === "empty-grid-tile";