fix: Dont add/remove DMs to space
This commit is contained in:
parent
9772d1bac9
commit
04a092aefd
1 changed files with 6 additions and 1 deletions
|
|
@ -57,7 +57,12 @@ class ChatListView extends StatelessWidget {
|
||||||
: selectMode == SelectMode.select
|
: selectMode == SelectMode.select
|
||||||
? [
|
? [
|
||||||
if (controller.selectedRoomIds.length == 1 &&
|
if (controller.selectedRoomIds.length == 1 &&
|
||||||
controller.spaces.isNotEmpty)
|
controller.spaces.isNotEmpty &&
|
||||||
|
!Matrix.of(context)
|
||||||
|
.client
|
||||||
|
.getRoomById(
|
||||||
|
controller.selectedRoomIds.single)
|
||||||
|
.isDirectChat)
|
||||||
IconButton(
|
IconButton(
|
||||||
tooltip: L10n.of(context).addToSpace,
|
tooltip: L10n.of(context).addToSpace,
|
||||||
icon: Icon(Icons.group_work_outlined),
|
icon: Icon(Icons.group_work_outlined),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue