mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Copy inbound attachments to archive service.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user