diff --git a/src/iOS/AppDelegate.cs b/src/iOS/AppDelegate.cs index c8a3b2be5..460a0905b 100644 --- a/src/iOS/AppDelegate.cs +++ b/src/iOS/AppDelegate.cs @@ -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); });