Fix missing media icon while sending gifs
This commit is contained in:
parent
bea067ccbe
commit
a775325e5f
1 changed files with 3 additions and 2 deletions
|
@ -13,6 +13,7 @@ import {
|
|||
getImageDimensions,
|
||||
defaultBlurHash,
|
||||
isDownloadable,
|
||||
isPermanentlyUndownloadable,
|
||||
} from '../../types/Attachment';
|
||||
import * as Errors from '../../types/errors';
|
||||
import * as log from '../../logging/log';
|
||||
|
@ -272,7 +273,7 @@ export function GIF(props: Props): JSX.Element {
|
|||
<span />
|
||||
</button>
|
||||
);
|
||||
} else if (!isMediaDownloadable) {
|
||||
} else if (isPermanentlyUndownloadable(attachment)) {
|
||||
overlay = (
|
||||
<button
|
||||
type="button"
|
||||
|
@ -286,7 +287,7 @@ export function GIF(props: Props): JSX.Element {
|
|||
);
|
||||
}
|
||||
|
||||
const detailPill = isDownloadable(attachment) ? (
|
||||
const detailPill = isMediaDownloadable ? (
|
||||
<AttachmentDetailPill
|
||||
attachments={[attachment]}
|
||||
cancelDownload={cancelDownload}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue