From 3fff0617feac6548a62d6b917386b0f2091cf5ec Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 21 Sep 2018 21:59:11 -0400 Subject: [PATCH] replace all on updates --- src/iOS/AppDelegate.cs | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) 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); });