From 6b93f059d75b241af1e3500e1f4a625b91fd52a0 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Wed, 16 Jun 2021 14:42:10 -0700 Subject: [PATCH] Fix Invite Handling --- lib/views/messageview.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/views/messageview.dart b/lib/views/messageview.dart index 552a055..f9496b5 100644 --- a/lib/views/messageview.dart +++ b/lib/views/messageview.dart @@ -193,12 +193,12 @@ class _MessageViewState extends State { ), ElevatedButton( child: Text(AppLocalizations.of(bcontext)!.inviteBtn, semanticsLabel: AppLocalizations.of(bcontext)!.inviteBtn), - onPressed: this.selectedContact == "" - ? null - : () { - this._sendInvitation(); - Navigator.pop(bcontext); - }, + onPressed: () { + if (this.selectedContact != "") { + this._sendInvitation(); + } + Navigator.pop(bcontext); + }, ), ], )),