Only show playable videos in the media preview fragment.

This commit is contained in:
Nicholas Tinsley
2024-08-09 12:19:09 -04:00
committed by mtang-signal
parent 32a00b5c75
commit 22dd1da985

View File

@@ -66,7 +66,9 @@ class MediaPreviewRepository {
for (i in 0..limit) {
val element = MediaTable.MediaRecord.from(cursor)
mediaRecords.add(element)
if (element.attachment?.transferState == AttachmentTable.TRANSFER_PROGRESS_DONE || element.attachment?.transferState == AttachmentTable.TRANSFER_PROGRESS_STARTED) {
mediaRecords.add(element)
}
if (!cursor.moveToNext()) {
break
}