1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 08:15:16 +00:00

Can invite a user to join a group

This commit is contained in:
2020-05-02 15:38:02 +02:00
parent 2ec8693e85
commit 3c7795837c
2 changed files with 12 additions and 1 deletions

View File

@ -96,11 +96,13 @@ class _GroupMembersScreenState extends State<GroupMembersScreen> {
final userID = await showPickUserDialog(context);
if (userID == null) return;
print("Invite user: $userID");
await GroupsHelper.sendInvitation(widget.groupID, userID);
} catch (e, s) {
print("Could not invite a user! $e\n$s");
showSimpleSnack(context, tr("Could not invite a user!"));
}
_key.currentState.refresh();
}
}