after joining a space, open space details

pull/1186/head
ggurdin 1 year ago
parent 990980155e
commit 1faf151001

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

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

Loading…
Cancel
Save