mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 07:43:37 +00:00
replace all on updates
This commit is contained in:
@@ -160,22 +160,17 @@ namespace Bit.iOS
|
|||||||
{
|
{
|
||||||
if(await ASHelpers.IdentitiesCanIncremental())
|
if(await ASHelpers.IdentitiesCanIncremental())
|
||||||
{
|
{
|
||||||
var identity = await ASHelpers.GetCipherIdentityAsync(data.Item1, _cipherService);
|
|
||||||
if(identity == null)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if(data.Item2)
|
if(data.Item2)
|
||||||
{
|
{
|
||||||
|
var identity = await ASHelpers.GetCipherIdentityAsync(data.Item1, _cipherService);
|
||||||
|
if(identity == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
await ASCredentialIdentityStore.SharedStore.SaveCredentialIdentitiesAsync(
|
await ASCredentialIdentityStore.SharedStore.SaveCredentialIdentitiesAsync(
|
||||||
new ASPasswordCredentialIdentity[] { identity });
|
new ASPasswordCredentialIdentity[] { identity });
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
await ASCredentialIdentityStore.SharedStore.ReplaceCredentialIdentitiesAsync(
|
|
||||||
new ASPasswordCredentialIdentity[] { identity });
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
await ASHelpers.ReplaceAllIdentities(_cipherService);
|
await ASHelpers.ReplaceAllIdentities(_cipherService);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user