fix: Bundle switch

This commit is contained in:
Christian Pauly 2021-09-19 12:47:31 +02:00
parent 4e8111a150
commit cf712c79f9

View File

@ -423,6 +423,12 @@ class ChatListController extends State<ChatList> {
_activeSpaceId = null;
selectedRoomIds.clear();
Matrix.of(context).activeBundle = bundle;
if (!Matrix.of(context)
.currentBundle
.any((client) => client == Matrix.of(context).client)) {
Matrix.of(context)
.setActiveClient(Matrix.of(context).currentBundle.first);
}
});
void editBundlesForAccount(String userId) async {