From cf712c79f9b91483619307deff0722b3ac46970c Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sun, 19 Sep 2021 12:47:31 +0200 Subject: [PATCH] fix: Bundle switch --- lib/pages/chat_list.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/pages/chat_list.dart b/lib/pages/chat_list.dart index 89ec3435..a6cd721a 100644 --- a/lib/pages/chat_list.dart +++ b/lib/pages/chat_list.dart @@ -423,6 +423,12 @@ class ChatListController extends State { _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 {