fix: fix join with code redirect for non-spaces (#4248)
This commit is contained in:
parent
9a7f935af6
commit
997d0d3706
1 changed files with 4 additions and 1 deletions
|
|
@ -52,7 +52,10 @@ class SpaceCodeController extends BaseController {
|
|||
);
|
||||
|
||||
if (spaceId != null) {
|
||||
context.go('/rooms/spaces/$spaceId/details');
|
||||
final room = _pangeaController.matrixState.client.getRoomById(spaceId);
|
||||
room?.isSpace ?? true
|
||||
? context.go('/rooms/spaces/$spaceId/details')
|
||||
: context.go('/rooms/${room?.id}');
|
||||
return spaceId;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue