fix: fix join with code redirect for non-spaces (#4248)

This commit is contained in:
ggurdin 2025-10-03 14:40:47 -04:00 committed by GitHub
parent 9a7f935af6
commit 997d0d3706
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}