fix for disappearing share sheet (#1386)

This commit is contained in:
Matt Portune 2021-04-27 17:49:01 -04:00 committed by GitHub
parent 3ef5ca9cc0
commit c27da8e7c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 10 deletions

View File

@ -391,16 +391,7 @@ namespace Bit.App.Pages
_messagingService.Send("sendUpdated");
}
if (ShareOnSave)
{
var savedSend = await _sendService.GetAsync(sendId);
if (savedSend != null)
{
var savedSendView = await savedSend.DecryptAsync();
await AppHelpers.ShareSendUrlAsync(savedSendView);
}
}
else
if (!ShareOnSave)
{
_platformUtilsService.ShowToast("success", null,
EditMode ? AppResources.SendUpdated : AppResources.NewSendCreated);
@ -415,6 +406,16 @@ namespace Bit.App.Pages
await Page.Navigation.PopModalAsync();
}
if (ShareOnSave)
{
var savedSend = await _sendService.GetAsync(sendId);
if (savedSend != null)
{
var savedSendView = await savedSend.DecryptAsync();
await AppHelpers.ShareSendUrlAsync(savedSendView);
}
}
return true;
}
catch (ApiException e)