Reset the upload timestamp on attachments with fixed digests.

This commit is contained in:
Greyson Parrelli 2024-09-18 07:05:52 -04:00
parent fcb2e3cc74
commit 9106812b74

View file

@ -1001,6 +1001,10 @@ class AttachmentTable(
values.put(REMOTE_IV, iv)
values.put(REMOTE_DIGEST, digest)
if (digestChanged) {
values.put(UPLOAD_TIMESTAMP, 0)
}
db.update(TABLE_NAME)
.values(values)
.where("$ID = ?", attachmentId.id)