mirror of
https://github.com/bitwarden/mobile.git
synced 2024-12-25 16:47:55 +01:00
ios < 12 fixes
This commit is contained in:
parent
8d9a5bc08f
commit
a4f93eea45
@ -158,12 +158,14 @@ namespace Bit.iOS
|
|||||||
MessagingCenter.Subscribe<Xamarin.Forms.Application, Tuple<string, bool>>(
|
MessagingCenter.Subscribe<Xamarin.Forms.Application, Tuple<string, bool>>(
|
||||||
Xamarin.Forms.Application.Current, "UpsertedCipher", async (sender, data) =>
|
Xamarin.Forms.Application.Current, "UpsertedCipher", async (sender, data) =>
|
||||||
{
|
{
|
||||||
if(_deviceInfoService.Version >= 12 && await ASHelpers.IdentitiesCanIncremental())
|
if (_deviceInfoService.Version >= 12)
|
||||||
{
|
{
|
||||||
if(data.Item2)
|
if (await ASHelpers.IdentitiesCanIncremental())
|
||||||
|
{
|
||||||
|
if (data.Item2)
|
||||||
{
|
{
|
||||||
var identity = await ASHelpers.GetCipherIdentityAsync(data.Item1, _cipherService);
|
var identity = await ASHelpers.GetCipherIdentityAsync(data.Item1, _cipherService);
|
||||||
if(identity == null)
|
if (identity == null)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -173,15 +175,18 @@ namespace Bit.iOS
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
await ASHelpers.ReplaceAllIdentities(_cipherService);
|
await ASHelpers.ReplaceAllIdentities(_cipherService);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
MessagingCenter.Subscribe<Xamarin.Forms.Application, Cipher>(
|
MessagingCenter.Subscribe<Xamarin.Forms.Application, Cipher>(
|
||||||
Xamarin.Forms.Application.Current, "DeletedCipher", async (sender, cipher) =>
|
Xamarin.Forms.Application.Current, "DeletedCipher", async (sender, cipher) =>
|
||||||
{
|
{
|
||||||
if(_deviceInfoService.Version >= 12 && await ASHelpers.IdentitiesCanIncremental())
|
if (_deviceInfoService.Version >= 12)
|
||||||
|
{
|
||||||
|
if (await ASHelpers.IdentitiesCanIncremental())
|
||||||
{
|
{
|
||||||
var identity = ASHelpers.ToCredentialIdentity(cipher);
|
var identity = ASHelpers.ToCredentialIdentity(cipher);
|
||||||
if(identity == null)
|
if (identity == null)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -190,6 +195,7 @@ namespace Bit.iOS
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
await ASHelpers.ReplaceAllIdentities(_cipherService);
|
await ASHelpers.ReplaceAllIdentities(_cipherService);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
MessagingCenter.Subscribe<Xamarin.Forms.Application>(
|
MessagingCenter.Subscribe<Xamarin.Forms.Application>(
|
||||||
|
Loading…
Reference in New Issue
Block a user