From 9a2b6c8ec92613569b73da03900ab8064cab6ad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Gon=C3=A7alves?= Date: Fri, 27 May 2022 14:16:45 +0100 Subject: [PATCH] PS-593 - View model properties are now updated on main thread (#1927) --- src/App/Pages/Vault/PasswordHistoryPageViewModel.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/App/Pages/Vault/PasswordHistoryPageViewModel.cs b/src/App/Pages/Vault/PasswordHistoryPageViewModel.cs index e25550604..bc415da2a 100644 --- a/src/App/Pages/Vault/PasswordHistoryPageViewModel.cs +++ b/src/App/Pages/Vault/PasswordHistoryPageViewModel.cs @@ -41,8 +41,11 @@ namespace Bit.App.Pages { var cipher = await _cipherService.GetAsync(CipherId); var decCipher = await cipher.DecryptAsync(); - History.ResetWithRange(decCipher.PasswordHistory ?? new List()); - ShowNoData = History.Count == 0; + Device.BeginInvokeOnMainThread(() => + { + History.ResetWithRange(decCipher.PasswordHistory ?? new List()); + ShowNoData = History.Count == 0; + }); } private async void CopyAsync(PasswordHistoryView ph)