1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-06-28 10:54:59 +02:00

fixes to cipher service

This commit is contained in:
Kyle Spearrin 2019-05-07 13:58:50 -04:00
parent a236d7fbb1
commit 68c6537bcb
2 changed files with 5 additions and 3 deletions

View File

@ -38,7 +38,7 @@
Text="{u:I18n Name}"
StyleClass="box-label" />
<Entry
Text="{Binding Cipher.Name, Mode=OneWay}"
Text="{Binding Cipher.Name}"
StyleClass="box-value" />
</StackLayout>
</StackLayout>

View File

@ -65,7 +65,7 @@ namespace Bit.Core.Services
{
if(value == null)
{
_decryptedCipherCache.Clear();
_decryptedCipherCache?.Clear();
}
_decryptedCipherCache = value;
if(_searchService != null)
@ -120,7 +120,7 @@ namespace Bit.Core.Services
}
else
{
model.Login.PasswordRevisionDate = DateTime.UtcNow;
model.Login.PasswordRevisionDate = existingCipher.Login.PasswordRevisionDate;
}
}
if(existingCipher.HasFields)
@ -951,6 +951,7 @@ namespace Bit.Core.Services
if(!attachmentsModel?.Any() ?? true)
{
cipher.Attachments = null;
return;
}
var tasks = new List<Task>();
var encAttachments = new List<Attachment>();
@ -1098,6 +1099,7 @@ namespace Bit.Core.Services
if(!phModels?.Any() ?? true)
{
cipher.PasswordHistory = null;
return;
}
var tasks = new List<Task>();
var encPhs = new List<PasswordHistory>();