diff --git a/lib/views/chat_details.dart b/lib/views/chat_details.dart index 0d99211..9fa1a17 100644 --- a/lib/views/chat_details.dart +++ b/lib/views/chat_details.dart @@ -141,16 +141,18 @@ class _ChatDetailsState extends State { ), ], ), - ListTile( - title: Text("Invite contact"), - leading: Icon(Icons.add), - onTap: () => Navigator.of(context).push( - AppRoute.defaultRoute( - context, - InvitationSelection(widget.room), - ), - ), - ), + widget.room.canInvite + ? ListTile( + title: Text("Invite contact"), + leading: Icon(Icons.add), + onTap: () => Navigator.of(context).push( + AppRoute.defaultRoute( + context, + InvitationSelection(widget.room), + ), + ), + ) + : Container(), ], ) : i < members.length + 1