Example #1
0
        private async void closeSessionClicked(object sender, EventArgs e)
        {
            if (!vm.HasInternetEnabled())
            {
                AlertMessage("No internet", "You cannot close a session if there are no internet services.");
                return;
            }
            var res = await DisplayAlert("Close session?", "Are you sure that you want to close this session?", "Continue", "Cancel");

            if (res)
            {
                var sendRes = await DisplayAlert($"Send copy to email?", "Do you want to send a copy of the chat to " + Constants.supportEmail + "?", "Yes", "Cancel");

                vm.CloseSessionAsync(sendRes);
            }
        }