From e6358996e648e1981ce997ecf42a34f7c3c0744e Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Thu, 12 Aug 2021 21:11:57 +0200 Subject: [PATCH] fix: Dont add/remove DMs to space --- lib/pages/views/chat_list_view.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/pages/views/chat_list_view.dart b/lib/pages/views/chat_list_view.dart index e197d2b7..fb6c4834 100644 --- a/lib/pages/views/chat_list_view.dart +++ b/lib/pages/views/chat_list_view.dart @@ -57,7 +57,12 @@ class ChatListView extends StatelessWidget { : selectMode == SelectMode.select ? [ if (controller.selectedRoomIds.length == 1 && - controller.spaces.isNotEmpty) + controller.spaces.isNotEmpty && + !Matrix.of(context) + .client + .getRoomById( + controller.selectedRoomIds.single) + .isDirectChat) IconButton( tooltip: L10n.of(context).addToSpace, icon: Icon(Icons.group_work_outlined),