Remove invite option from participants widget in DM (#4256)
This commit is contained in:
parent
93bf906719
commit
1e0fe2828c
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue