mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-30 16:29:30 +01:00
fix: navigate to /rooms when switching bundle
This commit is contained in:
parent
396a433cae
commit
57088bf741
@ -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…
Reference in New Issue
Block a user