Reset the upload timestamp on attachments with fixed digests.
This commit is contained in:
parent
fcb2e3cc74
commit
9106812b74
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue