mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-17 14:30:40 +01:00
fix: Dont add/remove DMs to space
This commit is contained in:
parent
5e2380816b
commit
e6358996e6
@ -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…
x
Reference in New Issue
Block a user