From 4b7366e9b34c4709a1b8d4b3a198ab7aba1a889b Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 19 Apr 2019 09:57:19 -0400 Subject: [PATCH] full sync on login --- src/App/Pages/Accounts/LoginPageViewModel.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/App/Pages/Accounts/LoginPageViewModel.cs b/src/App/Pages/Accounts/LoginPageViewModel.cs index 056903911..a765a18bb 100644 --- a/src/App/Pages/Accounts/LoginPageViewModel.cs +++ b/src/App/Pages/Accounts/LoginPageViewModel.cs @@ -13,11 +13,13 @@ namespace Bit.App.Pages { private readonly IDeviceActionService _deviceActionService; private readonly IAuthService _authService; + private readonly ISyncService _syncService; public LoginPageViewModel() { _deviceActionService = ServiceContainer.Resolve("deviceActionService"); _authService = ServiceContainer.Resolve("authService"); + _syncService = ServiceContainer.Resolve("syncService"); PageTitle = AppResources.Bitwarden; ShowPasswordCommand = new Command(() => @@ -62,6 +64,7 @@ namespace Bit.App.Pages } else { + var task = Task.Run(async () => await _syncService.FullSyncAsync(true)); Application.Current.MainPage = new TabsPage(); } }