From 8b65d99442da00d1a01c55611e4cb8a625d6ba1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bispo?= Date: Mon, 29 Apr 2024 14:53:07 +0100 Subject: [PATCH] [PM-7960] Revert change from passkey provider pr (#3196) * [PM-7690] Move UI thread invocation to viewmodel command --- src/Core/Pages/Accounts/LockPageViewModel.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Core/Pages/Accounts/LockPageViewModel.cs b/src/Core/Pages/Accounts/LockPageViewModel.cs index 3838df361..f259a382b 100644 --- a/src/Core/Pages/Accounts/LockPageViewModel.cs +++ b/src/Core/Pages/Accounts/LockPageViewModel.cs @@ -74,7 +74,10 @@ namespace Bit.App.Pages PageTitle = AppResources.VerifyMasterPassword; TogglePasswordCommand = new Command(TogglePassword); - SubmitCommand = CreateDefaultAsyncRelayCommand(SubmitAsync, onException: _logger.Exception, allowsMultipleExecutions: false); + SubmitCommand = CreateDefaultAsyncRelayCommand( + () => MainThread.InvokeOnMainThreadAsync(SubmitAsync), + onException: _logger.Exception, + allowsMultipleExecutions: false); AccountSwitchingOverlayViewModel = new AccountSwitchingOverlayViewModel(_stateService, _messagingService, _logger)