Only show invite button when possible
This commit is contained in:
parent
5a9d4b3d7f
commit
4dd31d961a
|
@ -141,7 +141,8 @@ class _ChatDetailsState extends State<ChatDetails> {
|
|||
),
|
||||
],
|
||||
),
|
||||
ListTile(
|
||||
widget.room.canInvite
|
||||
? ListTile(
|
||||
title: Text("Invite contact"),
|
||||
leading: Icon(Icons.add),
|
||||
onTap: () => Navigator.of(context).push(
|
||||
|
@ -150,7 +151,8 @@ class _ChatDetailsState extends State<ChatDetails> {
|
|||
InvitationSelection(widget.room),
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
: Container(),
|
||||
],
|
||||
)
|
||||
: i < members.length + 1
|
||||
|
|
Loading…
Reference in a new issue