From 0b3bdface8002f4ebf00de4dfaca705d9c751c2b Mon Sep 17 00:00:00 2001 From: RoyceDa Date: Tue, 24 Feb 2026 18:53:04 +0200 Subject: [PATCH 1/4] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=84=D0=BE=D0=BD=D0=BE=D0=B2=D0=BE?= =?UTF-8?q?=D0=B3=D0=BE=20=D1=81=D0=BA=D1=80=D0=BE=D0=BB=D0=BB=D0=B0=20?= =?UTF-8?q?=D1=83=20=D0=B8=D0=B7=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/providers/ImageViewerProvider/ImageViewer.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/providers/ImageViewerProvider/ImageViewer.tsx b/app/providers/ImageViewerProvider/ImageViewer.tsx index fe8f30a..b4b5931 100644 --- a/app/providers/ImageViewerProvider/ImageViewer.tsx +++ b/app/providers/ImageViewerProvider/ImageViewer.tsx @@ -87,6 +87,7 @@ export function ImageViewer(props : ImageViewerProps) { // Wheel zoom (zoom to cursor) const onWheel = (e: React.WheelEvent) => { //e.preventDefault(); + e.stopPropagation(); const rect = e.currentTarget.getBoundingClientRect(); const mouseX = e.clientX - rect.left; const mouseY = e.clientY - rect.top; From fabd85106d6e7e129bdb592e31b5ab9b03c82718 Mon Sep 17 00:00:00 2001 From: RoyceDa Date: Tue, 24 Feb 2026 19:11:56 +0200 Subject: [PATCH 2/4] =?UTF-8?q?=D0=9E=D0=BF=D1=82=D0=B8=D0=BC=D0=B8=D0=B7?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F=20=D1=80=D0=B0=D0=B7=D0=BC=D0=B5=D1=80?= =?UTF-8?q?=D0=B0=20=D0=BB=D0=BE=D0=B3-=D1=84=D0=B0=D0=B9=D0=BB=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/providers/DialogProvider/DialogProvider.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/providers/DialogProvider/DialogProvider.tsx b/app/providers/DialogProvider/DialogProvider.tsx index adfdc44..377e27d 100644 --- a/app/providers/DialogProvider/DialogProvider.tsx +++ b/app/providers/DialogProvider/DialogProvider.tsx @@ -328,7 +328,6 @@ export function DialogProvider(props: DialogProviderProps) { * Обработчик чтения групповых сообщений */ usePacket(0x07, async (packet : PacketRead) => { - info("Read packet received in dialog provider"); const fromPublicKey = packet.getFromPublicKey(); if(fromPublicKey == publicKey){ /** @@ -388,7 +387,6 @@ export function DialogProvider(props: DialogProviderProps) { }, [publicKey]); usePacket(0x08, async (packet : PacketDelivery) => { - info("Delivery packet received in dialog provider"); const fromPublicKey = packet.getToPublicKey(); const messageId = packet.getMessageId(); if(fromPublicKey != props.dialog){ @@ -514,7 +512,6 @@ export function DialogProvider(props: DialogProviderProps) { error("Message dropped because group key not found for group " + toPublicKey); return; } - info("New group message packet received from " + fromPublicKey); let decryptedContent = ''; @@ -673,7 +670,6 @@ export function DialogProvider(props: DialogProviderProps) { error("Message dropped because group key not found for group " + toPublicKey); return; } - info("New group message packet received from " + fromPublicKey); let decryptedContent = ''; From 49d7d9ff628a7904c3c45083c0a6951bcda375f0 Mon Sep 17 00:00:00 2001 From: RoyceDa Date: Tue, 24 Feb 2026 19:15:58 +0200 Subject: [PATCH 3/4] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D1=83=D1=81?= =?UTF-8?q?=D1=82=D0=B0=D0=BD=D0=BE=D0=B2=D0=BA=D0=B8=20=D0=B0=D0=B2=D0=B0?= =?UTF-8?q?=D1=82=D0=B0=D1=80=D0=BA=D0=B8=20=D1=83=20=D0=B3=D1=80=D1=83?= =?UTF-8?q?=D0=BF=D0=BF=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/providers/AttachmentProvider/useAttachment.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/providers/AttachmentProvider/useAttachment.ts b/app/providers/AttachmentProvider/useAttachment.ts index d5d88d2..8190277 100644 --- a/app/providers/AttachmentProvider/useAttachment.ts +++ b/app/providers/AttachmentProvider/useAttachment.ts @@ -15,6 +15,7 @@ import { AVATAR_PASSWORD_TO_ENCODE } from "@/app/constants"; import { useDialog } from "../DialogProvider/useDialog"; import { useCore } from "@/app/hooks/useCore"; import { MessageProps } from "@/app/components/Messages/Message"; +import { useGroups } from "../DialogProvider/useGroups"; export enum DownloadStatus { DOWNLOADED, @@ -39,6 +40,8 @@ export function useAttachment(attachment: Attachment, parentMessage: MessageProp const {info} = useConsoleLogger('useAttachment'); const {updateAttachmentsInMessagesByAttachmentId} = useDialog(); const {getDownloadsPath} = useCore(); + const {hasGroup} = useGroups(); + const {dialog} = useDialog(); const saveAvatar = useSaveAvatar(); @@ -186,7 +189,11 @@ export function useAttachment(attachment: Attachment, parentMessage: MessageProp /** * Устанавливаем аватарку тому, кто ее прислал. */ - saveAvatar(parentMessage.from, avatarPath, decrypted); + let avatarSetTo = parentMessage.from; + if(hasGroup(dialog)){ + avatarSetTo = dialog; + } + saveAvatar(avatarSetTo, avatarPath, decrypted); return; } /** From 4e42eb3c02c4ffebb0f362ed39155a2a659a84b4 Mon Sep 17 00:00:00 2001 From: RoyceDa Date: Tue, 24 Feb 2026 19:19:00 +0200 Subject: [PATCH 4/4] =?UTF-8?q?=D0=9F=D0=BE=D0=B4=D0=BD=D1=8F=D1=82=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=B2=D0=B5=D1=80=D1=81=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/version.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/app/version.ts b/app/version.ts index bc70765..da72aec 100644 --- a/app/version.ts +++ b/app/version.ts @@ -1,12 +1,9 @@ -export const APP_VERSION = "1.0.7"; +export const APP_VERSION = "1.0.8"; export const CORE_MIN_REQUIRED_VERSION = "1.5.0"; export const RELEASE_NOTICE = ` -**Обновление v1.0.7** :emoji_1f631: -- Фикс уведомлений при синхронизации сообщений -- Защищенная синхронизация ключей в группах -- Синхронизация сообщений в группах -- Синхронизация вложений в группах -- Синхронизация индикаторов прочтения -- Улучшенная организация кода и оптимизации +**Обновление v1.0.8** :emoji_1f631: +- Фикс проблемы с загрузкой аватарок в некоторых случаях +- Фикс фонового скролла при увеличении картинки +- Фикс артефактов у картинки `; \ No newline at end of file