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

Co-authored-by: ggurdin <ggurdin@gmail.com>
pull/2245/head
Kelrap 2 months ago committed by GitHub
parent ceebe17ce4
commit 10a7024c64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save