From 60f81c5cbabeb32bc28bc6f16b5c40ca30d1fc69 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 30 May 2019 15:15:58 -0400 Subject: [PATCH] no need to check sync success --- .../GroupingsPage/GroupingsPageViewModel.cs | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs b/src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs index 946bfe89e..b0db89fce 100644 --- a/src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs +++ b/src/App/Pages/Vault/GroupingsPage/GroupingsPageViewModel.cs @@ -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()