diff --git a/src/app/molecules/media/Media.jsx b/src/app/molecules/media/Media.jsx index 97f641fa..977d184b 100644 --- a/src/app/molecules/media/Media.jsx +++ b/src/app/molecules/media/Media.jsx @@ -423,9 +423,13 @@ function Embed({ link }) { let unmounted = false; async function getUrlPreview() { - const info = await mx.getUrlPreview(link, 0); - if (unmounted) return; - setUrlPreviewInfo(info); + try { + const info = await mx.getUrlPreview(link, 0); + if (unmounted) return; + setUrlPreviewInfo(info); + } catch { + setUrlPreviewInfo(); + } } getUrlPreview();