diff --git a/src/Core/Services/CipherService.cs b/src/Core/Services/CipherService.cs index f5e7a2b81..93f00dc1b 100644 --- a/src/Core/Services/CipherService.cs +++ b/src/Core/Services/CipherService.cs @@ -114,7 +114,7 @@ public async Task ClearCacheAsync() public async Task EncryptAsync(CipherView model, SymmetricCryptoKey key = null, Cipher originalCipher = null) { - // Adjust password history + // Adjust password history and attachments if (model.Id != null) { if (originalCipher == null) @@ -169,6 +169,9 @@ public async Task EncryptAsync(CipherView model, SymmetricCryptoKey key } } } + + //adjust attachments + model.Attachments = existingCipher.Attachments; } if (!model.PasswordHistory?.Any() ?? false) {