From 1572f06ef43687cdb23e534104d188c62c7d127a Mon Sep 17 00:00:00 2001 From: RoyceDa Date: Sat, 21 Feb 2026 20:49:55 +0200 Subject: [PATCH 1/3] =?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=B0=20=D0=BE=D1=82=D1=87=D0=B8=D1=81=D1=82=D0=BA?= =?UTF-8?q?=D0=B0=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B9?= =?UTF-8?q?=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=20=D0=BD=D0=B0=D0=B6=D0=B0?= =?UTF-8?q?=D1=82=D0=B8=D1=8F=20ESC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/DialogInput/DialogInput.tsx | 1 + app/components/MessageAttachments/MessageAttachments.tsx | 1 - app/components/ReplyHeader/ReplyHeader.tsx | 6 +----- app/providers/DialogProvider/useReplyMessages.ts | 2 ++ 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/components/DialogInput/DialogInput.tsx b/app/components/DialogInput/DialogInput.tsx index e529a4e..4cb6354 100644 --- a/app/components/DialogInput/DialogInput.tsx +++ b/app/components/DialogInput/DialogInput.tsx @@ -60,6 +60,7 @@ export function DialogInput() { useHotkeys([ ['Esc', () => { setAttachments([]); + deselectAllMessages(); }] ], [], true); diff --git a/app/components/MessageAttachments/MessageAttachments.tsx b/app/components/MessageAttachments/MessageAttachments.tsx index 6446d1e..44c7714 100644 --- a/app/components/MessageAttachments/MessageAttachments.tsx +++ b/app/components/MessageAttachments/MessageAttachments.tsx @@ -42,7 +42,6 @@ export function MessageAttachments(props: MessageAttachmentsProps) { text: props.text, parent: props.parent, } - console.info("Rendering attachment", attachProps); switch (att.type) { case AttachmentType.MESSAGES: return diff --git a/app/components/ReplyHeader/ReplyHeader.tsx b/app/components/ReplyHeader/ReplyHeader.tsx index 23b6c4c..760895c 100644 --- a/app/components/ReplyHeader/ReplyHeader.tsx +++ b/app/components/ReplyHeader/ReplyHeader.tsx @@ -1,7 +1,7 @@ import { useRosettaColors } from "@/app/hooks/useRosettaColors"; import { useReplyMessages } from "@/app/providers/DialogProvider/useReplyMessages"; import { Button, Flex, Modal, Text } from "@mantine/core"; -import { useDisclosure, useHotkeys } from "@mantine/hooks"; +import { useDisclosure } from "@mantine/hooks"; import { IconCornerUpLeft, IconCornerUpRightDouble, IconTrash, IconX } from "@tabler/icons-react"; import classes from "./ReplyHeader.module.css"; import { DialogsList } from "../DialogsList/DialogsList"; @@ -19,10 +19,6 @@ export function ReplyHeader() { const [opened, { open, close }] = useDisclosure(false); const navigate = useNavigate(); const {deleteSelectedMessages} = useDialog(); - - useHotkeys([ - ['Esc', deselectAllMessages] - ], [], true); const onClickForward = () => { open(); diff --git a/app/providers/DialogProvider/useReplyMessages.ts b/app/providers/DialogProvider/useReplyMessages.ts index 4475286..487e8bb 100644 --- a/app/providers/DialogProvider/useReplyMessages.ts +++ b/app/providers/DialogProvider/useReplyMessages.ts @@ -35,6 +35,7 @@ export function useReplyMessages() { const {dialog} = context; const selectMessage = (message : MessageReply) => { + console.info("-> ", replyMessages); console.info(message); if(replyMessages.publicKey != dialog){ /** @@ -70,6 +71,7 @@ export function useReplyMessages() { } const deselectAllMessages = () => { + console.info("Deselecting all messages"); setReplyMessages({ publicKey: "", messages: [] From fe418dabc97ab7cd973fca8ae7c80cb40d9e61eb Mon Sep 17 00:00:00 2001 From: RoyceDa Date: Sat, 21 Feb 2026 22:25:06 +0200 Subject: [PATCH 2/3] =?UTF-8?q?=D0=9F=D1=80=D0=B8=20=D0=BA=D0=BB=D0=B8?= =?UTF-8?q?=D0=BA=D0=B5=20=D0=BD=D0=B0=20=D1=82=D0=B5=D0=BA=D1=81=D1=82=20?= =?UTF-8?q?=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=82?= =?UTF-8?q?=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20=D0=BE=D0=BD=20=D0=B2=D1=8B?= =?UTF-8?q?=D0=B4=D0=B5=D0=BB=D1=8F=D0=B5=D1=82=D1=81=D1=8F,=20=D0=B0=20?= =?UTF-8?q?=D0=BD=D0=B5=20=D1=83=D1=85=D0=BE=D0=B4=D0=B8=D1=82=20=D0=B2=20?= =?UTF-8?q?=D0=BE=D1=82=D0=B2=D0=B5=D1=82=20=D0=BA=20=D1=81=D0=BE=D0=BE?= =?UTF-8?q?=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/Messages/Message.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/Messages/Message.tsx b/app/components/Messages/Message.tsx index 8868292..9e21c66 100644 --- a/app/components/Messages/Message.tsx +++ b/app/components/Messages/Message.tsx @@ -213,7 +213,7 @@ export function Message(props: MessageProps) { userSelect: 'text', fontSize: '13px', color: messageStyle == MessageStyle.BUBBLES ? (computedTheme == 'light' ? (props.parent?.from_me ? 'white' : 'black') : 'white') : (computedTheme == 'light' ? 'black' : 'white') - }} ml={props.avatar_no_render ? 50 : undefined}> + }} ml={props.avatar_no_render ? 50 : undefined} onDoubleClick={(e) => e.stopPropagation()}> @@ -302,7 +302,7 @@ export function Message(props: MessageProps) { userSelect: 'text', fontSize: '14px', color: props.from_me ? 'white' : (computedTheme == 'light' ? 'black' : 'white') - }}> + }} onDoubleClick={(e) => e.stopPropagation()}> )} From a9ce892ea22f73dba6a5c2e27b54721eaa5180db Mon Sep 17 00:00:00 2001 From: RoyceDa Date: Sat, 21 Feb 2026 22:26:40 +0200 Subject: [PATCH 3/3] =?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, 4 insertions(+), 9 deletions(-) diff --git a/app/version.ts b/app/version.ts index 36c3ecf..9ff6ed3 100644 --- a/app/version.ts +++ b/app/version.ts @@ -1,13 +1,8 @@ -export const APP_VERSION = "1.0.5"; +export const APP_VERSION = "1.0.6"; export const CORE_MIN_REQUIRED_VERSION = "1.5.0"; export const RELEASE_NOTICE = ` -**Обновление v1.0.5** :emoji_1f631: -- Оптимизирован код ядра -- Исправление ошибки с системой обновления в результате гонки потоков в ядре -- Исправление уведомлений при синхронизации -- Анимация перемещения диалогов -- Оптимизирован код вложений -- Исправлен скролл при подгрузке сообщений сверху -- Ускорена загрузка диалогов при большом количестве тяжелых изображений +**Обновление v1.0.6** :emoji_1f631: +- Исправлена очистка сообщения при нажатии ESC +- При клике на текст в сообщении теперь сообщение не уходит в ответ `; \ No newline at end of file