fix: navigate to /rooms when switching bundle
This commit is contained in:
parent
b7053c2044
commit
88ffbb6972
1 changed files with 14 additions and 11 deletions
|
|
@ -419,7 +419,9 @@ class ChatListController extends State<ChatList> {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void setActiveBundle(String bundle) => setState(() {
|
void setActiveBundle(String bundle) {
|
||||||
|
VRouter.of(context).to('/rooms');
|
||||||
|
setState(() {
|
||||||
_activeSpaceId = null;
|
_activeSpaceId = null;
|
||||||
selectedRoomIds.clear();
|
selectedRoomIds.clear();
|
||||||
Matrix.of(context).activeBundle = bundle;
|
Matrix.of(context).activeBundle = bundle;
|
||||||
|
|
@ -430,6 +432,7 @@ class ChatListController extends State<ChatList> {
|
||||||
.setActiveClient(Matrix.of(context).currentBundle.first);
|
.setActiveClient(Matrix.of(context).currentBundle.first);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
void editBundlesForAccount(String userId) async {
|
void editBundlesForAccount(String userId) async {
|
||||||
final client = Matrix.of(context)
|
final client = Matrix.of(context)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue