From 1e0fe2828c404eb0436f15df1f47a817c85ba8e2 Mon Sep 17 00:00:00 2001 From: Kelrap <99418823+Kelrap@users.noreply.github.com> Date: Tue, 7 Oct 2025 12:08:23 -0400 Subject: [PATCH] Remove invite option from participants widget in DM (#4256) --- lib/pangea/chat_settings/pages/room_participants_widget.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pangea/chat_settings/pages/room_participants_widget.dart b/lib/pangea/chat_settings/pages/room_participants_widget.dart index 6ef9d0eb3..94700aed9 100644 --- a/lib/pangea/chat_settings/pages/room_participants_widget.dart +++ b/lib/pangea/chat_settings/pages/room_participants_widget.dart @@ -76,7 +76,7 @@ class RoomParticipantsSection extends StatelessWidget { runAlignment: WrapAlignment.center, children: [...filteredParticipants, null].mapIndexed((index, user) { if (user == null) { - return room.canInvite + return room.canInvite && !room.isDirectChat ? MouseRegion( cursor: SystemMouseCursors.click, child: GestureDetector(