Don't use encryptedByteCount where we should be using unencrypted byte count

This commit is contained in:
Harry 2024-07-19 15:01:12 -07:00 committed by GitHub
parent f4d61e34ac
commit d7396f2fe4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,7 +58,7 @@ public class AttachmentThumbnailServiceImpl: AttachmentThumbnailService {
relativeFilePath: attachmentStream.localRelativeFilePath
),
encryptionKey: attachmentStream.attachment.encryptionKey,
plaintextLength: attachmentStream.encryptedByteCount,
plaintextLength: attachmentStream.unencryptedByteCount,
mimeType: attachmentStream.mimeType
)
.resized(maxDimensionPoints: quality.thumbnailDimensionPoints())