diff --git a/ui/v2.5/src/components/Wall/WallItem.tsx b/ui/v2.5/src/components/Wall/WallItem.tsx index 0abdf64cb..8918ee488 100644 --- a/ui/v2.5/src/components/Wall/WallItem.tsx +++ b/ui/v2.5/src/components/Wall/WallItem.tsx @@ -69,7 +69,10 @@ const Preview: React.FC<{ className={cx("wall-item-media", { "wall-item-preview": previewType !== "video", })} - onError={() => setIsMissing(true)} + onError={(error: React.SyntheticEvent) => { + // Error code 4 indicates media not found or unsupported + setIsMissing(error.currentTarget.error?.code === 4); + }} ref={videoElement} /> );