One lightbox at a time; proper dismiss of "read more" screen; proper in-progress draft HEIC images

This commit is contained in:
Scott Nonnenberg
2021-09-02 12:35:23 -07:00
committed by GitHub
parent 01b015680b
commit 9ca9f743c3
7 changed files with 26 additions and 37 deletions

View File

@@ -10,7 +10,7 @@ export function shouldUseFullSizeLinkPreviewImage({
isStickerPack,
image,
}: Readonly<LinkPreviewType>): boolean {
if (isStickerPack || !isImageAttachment(image)) {
if (isStickerPack || !image || !isImageAttachment(image)) {
return false;
}