fix: Dont add/remove DMs to space

This commit is contained in:
Christian Pauly 2021-08-12 21:11:57 +02:00
parent 5e2380816b
commit e6358996e6

View File

@ -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),