Merge branch 'soru/navigate-to-room' into 'main'

fix: navigate to /rooms when switching bundle

Closes #566

See merge request famedly/fluffychat!527
This commit is contained in:
Krille Fear 2021-09-21 07:20:56 +00:00
commit c36b48302c
1 changed files with 14 additions and 11 deletions

View File

@ -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;
selectedRoomIds.clear();
Matrix.of(context).activeBundle = bundle;
@ -430,6 +432,7 @@ class ChatListController extends State<ChatList> {
.setActiveClient(Matrix.of(context).currentBundle.first);
}
});
}
void editBundlesForAccount(String userId) async {
final client = Matrix.of(context)