Skip to content

Commit 7f21b6c

Browse files
Merge pull request #1224 from GetStream/khushal87-giphy-issue-fix
fix: issues with opening old Giphy on ImageGallery
2 parents ac03619 + 1d9b187 commit 7f21b6c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package/src/components/ImageGallery/ImageGallery.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,10 @@ export const ImageGallery = <
312312
const attachmentImages =
313313
cur.attachments?.filter(
314314
(attachment) =>
315-
(attachment.type === 'giphy' && attachment.giphy?.[giphyVersion]?.url) ||
315+
(attachment.type === 'giphy' &&
316+
(attachment.giphy?.[giphyVersion]?.url ||
317+
attachment.thumb_url ||
318+
attachment.image_url)) ||
316319
(attachment.type === 'image' &&
317320
!attachment.title_link &&
318321
!attachment.og_scrape_url &&

0 commit comments

Comments
 (0)