From d83f1d4cce86e8bbeb1531cc436cf9a174b36dec66872560a1cb74647dd5fb26 Mon Sep 17 00:00:00 2001 From: AidarKC Date: Thu, 10 Sep 2026 12:41:33 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=81=D0=BA=D1=80=D1=8B=D1=82=D0=B8=D0=B5=20?= =?UTF-8?q?=D1=80=D0=B0=D0=B7=D0=B4=D0=B5=D0=BB=D0=B8=D1=82=D0=B5=D0=BB?= =?UTF-8?q?=D1=8F=20=D0=BD=D0=BE=D0=B2=D1=8B=D1=85=20DM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION.properties | 2 +- shine-UI/js/pages/chat-view.js | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/VERSION.properties b/VERSION.properties index d978ef40..59118614 100644 --- a/VERSION.properties +++ b/VERSION.properties @@ -1,2 +1,2 @@ -client.version=1.12.10 +client.version=1.12.11 server.version=1.10.4 diff --git a/shine-UI/js/pages/chat-view.js b/shine-UI/js/pages/chat-view.js index 746a1999..f3d7f3e9 100644 --- a/shine-UI/js/pages/chat-view.js +++ b/shine-UI/js/pages/chat-view.js @@ -1355,6 +1355,14 @@ export function render({ navigate, route, chrome }) { const finalText = editing ? `${String(editing?.prefixText || '')}${text}` : `${replying ? buildDmReplyTechBlock({ baseKey: replying.baseKey }) : ''}${text}`; + + // A new outgoing message immediately ends the visual "Новые сообщения" section. + // Do this before awaiting the server: the divider is a UI-session marker, not a + // delivery/read receipt indicator. Editing an existing message does not clear it. + if (!editing) { + hideUnreadSeparator({ rerender: false }); + } + const tempId = editing ? '' : addOutgoingPendingMessage(chatId, text); renderChatLog({ scrollMode: 'latest', markAsRead: false }); scrollToLatestMessageSmart(log, { smoothIfNearBottom: true }); @@ -1392,13 +1400,6 @@ export function render({ navigate, route, chrome }) { deliveryState: result?.deliveryState || 'accepted', }); - // In a DM the "Новые сообщения" divider stays fixed for the current open - // chat session and disappears only after a successfully sent NEW message. - // Editing an existing message must not clear the divider. - if (!editing) { - hideUnreadSeparator({ rerender: false }); - } - if (editing) { cancelEditMode({ restoreDraft: true }); } else if (replying) {