Check for invite permission for countParticipants button action (#3795)
Co-authored-by: ggurdin <ggurdin@gmail.com>
This commit is contained in:
parent
ceebe17ce4
commit
10a7024c64
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ class ChatDetailsContent extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
TextButton.icon(
|
||||
onPressed: room.isDirectChat
|
||||
onPressed: room.isDirectChat || !room.canInvite
|
||||
? null
|
||||
: () => context.push(
|
||||
'/rooms/${controller.roomId}/details/invite?filter=participants',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue