Update more dependencies

This commit is contained in:
Tulir Asokan
2022-11-13 17:59:11 +02:00
parent d8f229c102
commit 5db151d90f
3 changed files with 36 additions and 37 deletions

View File

@ -1228,7 +1228,7 @@ func (c *Container) DownloadToDisk(uri id.ContentURI, file *attachment.Encrypted
}
if file != nil {
data, err = file.Decrypt(data)
err = file.DecryptInPlace(data)
if err != nil {
return
}
@ -1286,7 +1286,7 @@ func (c *Container) download(uri id.ContentURI, file *attachment.EncryptedFile,
}
if file != nil {
data, err = file.Decrypt(data)
err = file.DecryptInPlace(data)
if err != nil {
return
}