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