Be more specific about which blurhashes to throw out.

This commit is contained in:
Greyson Parrelli
2024-11-01 14:07:11 -04:00
parent faa6d743c0
commit 7e7831cdde

View File

@@ -2453,7 +2453,7 @@ class AttachmentTable(
contentValues.put(TRANSFORM_PROPERTIES, transformProperties.serialize())
contentValues.put(ATTACHMENT_UUID, attachment.uuid?.toString())
if (attachment.transformProperties?.videoEdited == true) {
if (attachment.transformProperties?.videoTrimStartTimeUs != 0L) {
contentValues.putNull(BLUR_HASH)
} else {
contentValues.put(BLUR_HASH, uploadTemplate.getVisualHashStringOrNull())