mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
replace all on updates
This commit is contained in:
parent
d958dc6bce
commit
3fff0617fe
1 changed files with 6 additions and 11 deletions
|
@ -160,22 +160,17 @@ namespace Bit.iOS
|
|||
{
|
||||
if(await ASHelpers.IdentitiesCanIncremental())
|
||||
{
|
||||
var identity = await ASHelpers.GetCipherIdentityAsync(data.Item1, _cipherService);
|
||||
if(identity == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if(data.Item2)
|
||||
{
|
||||
var identity = await ASHelpers.GetCipherIdentityAsync(data.Item1, _cipherService);
|
||||
if(identity == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
await ASCredentialIdentityStore.SharedStore.SaveCredentialIdentitiesAsync(
|
||||
new ASPasswordCredentialIdentity[] { identity });
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
await ASCredentialIdentityStore.SharedStore.ReplaceCredentialIdentitiesAsync(
|
||||
new ASPasswordCredentialIdentity[] { identity });
|
||||
}
|
||||
return;
|
||||
}
|
||||
await ASHelpers.ReplaceAllIdentities(_cipherService);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue