Copy inbound attachments to archive service.

This commit is contained in:
Clark
2024-04-23 10:28:07 -04:00
committed by Cody Henthorne
parent 4bcab49539
commit f82bd64c10

View File

@@ -175,6 +175,13 @@ class AttachmentDownloadJob private constructor(
Cdn.S3 -> retrieveAttachmentForReleaseChannel(messageId, attachmentId, attachment)
else -> retrieveAttachment(messageId, attachmentId, attachment)
}
if ((attachment.cdn == Cdn.CDN_2 || attachment.cdn == Cdn.CDN_3) &&
attachment.archiveMediaId == null &&
SignalStore.backup().canReadWriteToArchiveCdn
) {
ApplicationDependencies.getJobManager().add(ArchiveAttachmentJob(attachmentId))
}
}
override fun onFailure() {