mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Fix undownloadable attachment check to require download error
This commit is contained in:
@@ -1268,6 +1268,12 @@ export function isDownloadable(attachment: AttachmentType): boolean {
|
||||
);
|
||||
}
|
||||
|
||||
export function isPermanentlyUndownloadable(
|
||||
attachment: AttachmentType
|
||||
): boolean {
|
||||
return Boolean(!isDownloadable(attachment) && attachment.error);
|
||||
}
|
||||
|
||||
export function isAttachmentLocallySaved(
|
||||
attachment: AttachmentType
|
||||
): attachment is LocallySavedAttachment {
|
||||
|
||||
Reference in New Issue
Block a user