1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-27 21:53:57 +00:00

update autofill identities if needed

This commit is contained in:
Kyle Spearrin
2019-07-22 07:09:51 -04:00
parent e407acd2a7
commit 13ddd10c40
4 changed files with 31 additions and 1 deletions

View File

@@ -96,6 +96,15 @@ namespace Bit.iOS
{
ListenYubiKey((bool)message.Data);
}
else if(message.Command == "unlocked")
{
var needsAutofillReplacement = await _storageService.GetAsync<bool?>(
Core.Constants.AutofillNeedsIdentityReplacementKey);
if(needsAutofillReplacement.GetValueOrDefault())
{
await ASHelpers.ReplaceAllIdentities();
}
}
else if(message.Command == "showAppExtension")
{
Device.BeginInvokeOnMainThread(() => ShowAppExtension((ExtensionPageViewModel)message.Data));