Update attachment backfill proto.

This commit is contained in:
Greyson Parrelli
2025-03-21 15:09:45 -04:00
committed by Cody Henthorne
parent e2961a3f6f
commit 7c9cd8964f
5 changed files with 32 additions and 23 deletions

View File

@@ -1711,10 +1711,8 @@ object SyncMessageProcessor {
.enqueue()
}
if (needsUpload.size != attachments.size) {
log(timestamp, "[AttachmentBackfillRequest] At least one attachment didn't need to be uploaded. Enqueuing update job immediately.")
MultiDeviceAttachmentBackfillUpdateJob.enqueue(request.targetMessage!!, request.targetConversation!!, messageId)
}
// Enqueueing an update immediately to tell the requesting device that the primary is online.
MultiDeviceAttachmentBackfillUpdateJob.enqueue(request.targetMessage!!, request.targetConversation!!, messageId)
}
private fun ConversationIdentifier.toRecipientId(): RecipientId? {