Remove invite option from participants widget in DM (#4256)

This commit is contained in:
Kelrap 2025-10-07 12:08:23 -04:00 committed by GitHub
parent 93bf906719
commit 1e0fe2828c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(