Media needs to be tapped on twice for it to load during call.

Fixes #14581
Fixes #14592
This commit is contained in:
Greyson Parrelli
2026-02-17 14:07:36 -05:00
committed by Alex Hart
parent 46582a685b
commit a8dddf33f8

View File

@@ -116,9 +116,19 @@ class AttachmentDownloadJob private constructor(
}
}
AttachmentTable.TRANSFER_PROGRESS_STARTED,
AttachmentTable.TRANSFER_PROGRESS_STARTED -> {
Log.i(TAG, "${databaseAttachment.attachmentId} is in started state, enqueueing force download in case existing job is constraint-blocked")
val downloadJob = AttachmentDownloadJob(
messageId = databaseAttachment.mmsId,
attachmentId = databaseAttachment.attachmentId,
forceDownload = true
)
AppDependencies.jobManager.add(downloadJob)
downloadJob.id
}
AttachmentTable.TRANSFER_PROGRESS_PERMANENT_FAILURE -> {
Log.d(TAG, "${databaseAttachment.attachmentId} is downloading or permanently failed, transferState: $transferState")
Log.d(TAG, "${databaseAttachment.attachmentId} is permanently failed, transferState: $transferState")
null
}