no need to check sync success

This commit is contained in:
Kyle Spearrin 2019-05-30 15:15:58 -04:00
parent 419cfceef1
commit 60f81c5cba
1 changed files with 7 additions and 9 deletions

View File

@ -3,6 +3,7 @@ using Bit.App.Resources;
using Bit.App.Utilities;
using Bit.Core.Abstractions;
using Bit.Core.Enums;
using Bit.Core.Exceptions;
using Bit.Core.Models.Domain;
using Bit.Core.Models.View;
using Bit.Core.Utilities;
@ -268,16 +269,13 @@ namespace Bit.App.Pages
public async Task SyncAsync()
{
await _deviceActionService.ShowLoadingAsync(AppResources.Syncing);
var success = await _syncService.FullSyncAsync(false);
try
{
await _syncService.FullSyncAsync(false);
}
catch(ApiException) { }
await _deviceActionService.HideLoadingAsync();
if(success)
{
_platformUtilsService.ShowToast("success", null, AppResources.SyncingComplete);
}
else
{
await Page.DisplayAlert(null, AppResources.SyncingFailed, AppResources.Ok);
}
_platformUtilsService.ShowToast("success", null, AppResources.SyncingComplete);
}
private async Task LoadDataAsync()