Оптимизирован код вложений, исправлена установка аватарки на диалог, а не у отправителя

This commit is contained in:
RoyceDa
2026-02-20 17:43:56 +02:00
parent db72246e5a
commit c64a7005d3
6 changed files with 22 additions and 17 deletions

View File

@@ -19,7 +19,7 @@ export function MessageImage(props: AttachmentProps) {
download,
downloadStatus,
getBlob,
getPreview } = useAttachment(props.attachment, props.chacha_key_plain);
getPreview } = useAttachment(props.attachment, props.parent);
const mainRef = useRef<HTMLDivElement>(null);
const error = downloadStatus == DownloadStatus.ERROR;
const { open } = useImageViewer();