diff --git a/src/client/webapp/elements/lists/components/message-element.tsx b/src/client/webapp/elements/lists/components/message-element.tsx index bcaa4f7..10f49dd 100644 --- a/src/client/webapp/elements/lists/components/message-element.tsx +++ b/src/client/webapp/elements/lists/components/message-element.tsx @@ -51,7 +51,6 @@ interface PreviewImageElementProps { const PreviewImageElement: FC = (props: PreviewImageElementProps) => { const { guild, previewWidth, previewHeight, resourcePreviewId, resourceId, resourceName } = props; - // TODO: Handle resourceError const [ previewImgSrc, previewResource, previewResourceError ] = GuildSubscriptions.useSoftImageSrcResourceSubscription(guild, resourcePreviewId); diff --git a/src/client/webapp/elements/overlays/overlay-image.tsx b/src/client/webapp/elements/overlays/overlay-image.tsx index c7ac808..413528a 100644 --- a/src/client/webapp/elements/overlays/overlay-image.tsx +++ b/src/client/webapp/elements/overlays/overlay-image.tsx @@ -21,13 +21,11 @@ export interface ImageOverlayProps { const ImageOverlay: FC = (props: ImageOverlayProps) => { const { guild, resourceId, resourceName } = props; - // TODO: Handle errors const rootRef = useRef(null); const [ imgSrc, resource, resourceError ] = GuildSubscriptions.useSoftImageSrcResourceSubscription(guild, resourceId); const [ relativeToPos, setRelativeToPos ] = useState<{ x: number, y: number }>({ x: 0, y: 0 }); - const [ contextMenu, toggleContextMenu ] = ReactHelper.useContextMenu((close: () => void) => { if (!resource) return null; return (