mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Introduce ability to play mp4 files as they download
This commit is contained in:
@@ -14,6 +14,7 @@ import {
|
||||
getImageDimensions,
|
||||
getThumbnailUrl,
|
||||
getUrl,
|
||||
isIncremental,
|
||||
isVideoAttachment,
|
||||
} from '../../types/Attachment';
|
||||
|
||||
@@ -539,10 +540,11 @@ function renderDownloadPill({
|
||||
startDownloadClick: (event: React.MouseEvent) => void;
|
||||
startDownloadKeyDown: (event: React.KeyboardEvent<HTMLButtonElement>) => void;
|
||||
}): JSX.Element | null {
|
||||
const downloadedOrPending = attachments.some(
|
||||
attachment => attachment.path || attachment.pending
|
||||
const downloadedOrPendingOrIncremental = attachments.some(
|
||||
attachment =>
|
||||
attachment.path || attachment.pending || isIncremental(attachment)
|
||||
);
|
||||
if (downloadedOrPending) {
|
||||
if (downloadedOrPendingOrIncremental) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user