Check for invite permission for countParticipants button action (#3795)

Co-authored-by: ggurdin <ggurdin@gmail.com>
This commit is contained in:
Kelrap 2025-08-25 15:54:12 -04:00 committed by GitHub
parent ceebe17ce4
commit 10a7024c64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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',