1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-07-02 11:34:54 +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}" Text="{u:I18n Name}"
StyleClass="box-label" /> StyleClass="box-label" />
<Entry <Entry
Text="{Binding Cipher.Name, Mode=OneWay}" Text="{Binding Cipher.Name}"
StyleClass="box-value" /> StyleClass="box-value" />
</StackLayout> </StackLayout>
</StackLayout> </StackLayout>

View File

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