1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-05 23:53:33 +00:00

PM-2572 Fix pr comment

This commit is contained in:
Carlos Gonçalves
2024-05-29 13:27:59 +01:00
parent c40eb9d3db
commit 290266c262

View File

@@ -576,7 +576,7 @@ namespace Bit.Core.Services
var attachmentTasks = new List<Task>();
Cipher cipher = null;
//If the cipher doesn't have a key, we update it
if(await ShouldUseCipherKeyEncryptionAsync() && cipherView.Key == null)
if(cipherView.Key == null && await ShouldUseCipherKeyEncryptionAsync())
{
await UpdateAndUpsertAsync(cipherView, cipher => _apiService.PutCipherAsync(cipherView.Id, new CipherRequest(cipher)));
cipher = await GetAsync(cipherView.Id);