Avoid attempting incremental playback on undownloadable attachments

Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
automated-signal
2026-04-28 08:26:44 -05:00
committed by GitHub
parent 795d9f2336
commit f4fbde2e2f
+4 -1
View File
@@ -73,6 +73,7 @@ import {
isVoiceMessage,
isIncremental,
defaultBlurHash,
isDownloadable,
} from '../../util/Attachment.std.ts';
import type { MessageAttachmentType } from '../../types/AttachmentDownload.std.ts';
import type {
@@ -2188,7 +2189,9 @@ export function getPropsForAttachment(
pending,
url: path ? getLocalAttachmentUrl(attachment) : undefined,
incrementalUrl:
isIncremental(attachment) && attachment.downloadPath
isIncremental(attachment) &&
attachment.downloadPath &&
isDownloadable(attachment)
? getLocalAttachmentUrl(attachment, {
disposition: AttachmentDisposition.Download,
})