after joining a space, open space details

This commit is contained in:
ggurdin 2024-06-18 12:07:25 -04:00
parent 990980155e
commit 1faf151001
2 changed files with 3 additions and 2 deletions

View file

@ -523,6 +523,9 @@ class ChatListController extends State<ChatList>
// if (event["activeSpaceId"] != null && mounted) {
if (mounted) {
setActiveSpace(event["activeSpaceId"]);
if (event["activeSpaceId"] != null) {
context.go("/rooms/${event["activeSpaceId"]}/details");
}
}
});

View file

@ -220,7 +220,6 @@ class NewSpaceController extends State<NewSpace> {
);
MatrixState.pangeaController.classController
.setActiveSpaceIdInChatListController(spaceId);
context.go("/rooms/$spaceId/details");
return;
}
@ -249,7 +248,6 @@ class NewSpaceController extends State<NewSpace> {
// context.pop<String>(spaceId);
MatrixState.pangeaController.classController
.setActiveSpaceIdInChatListController(spaceId);
context.go("/rooms/$spaceId/details");
// Pangea#
} catch (e) {
setState(() {