SHA256
Исправить скрытие разделителя новых DM
This commit is contained in:
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
client.version=1.12.10
|
client.version=1.12.11
|
||||||
server.version=1.10.4
|
server.version=1.10.4
|
||||||
|
|||||||
@@ -1355,6 +1355,14 @@ export function render({ navigate, route, chrome }) {
|
|||||||
const finalText = editing
|
const finalText = editing
|
||||||
? `${String(editing?.prefixText || '')}${text}`
|
? `${String(editing?.prefixText || '')}${text}`
|
||||||
: `${replying ? buildDmReplyTechBlock({ baseKey: replying.baseKey }) : ''}${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);
|
const tempId = editing ? '' : addOutgoingPendingMessage(chatId, text);
|
||||||
renderChatLog({ scrollMode: 'latest', markAsRead: false });
|
renderChatLog({ scrollMode: 'latest', markAsRead: false });
|
||||||
scrollToLatestMessageSmart(log, { smoothIfNearBottom: true });
|
scrollToLatestMessageSmart(log, { smoothIfNearBottom: true });
|
||||||
@@ -1392,13 +1400,6 @@ export function render({ navigate, route, chrome }) {
|
|||||||
deliveryState: result?.deliveryState || 'accepted',
|
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) {
|
if (editing) {
|
||||||
cancelEditMode({ restoreDraft: true });
|
cancelEditMode({ restoreDraft: true });
|
||||||
} else if (replying) {
|
} else if (replying) {
|
||||||
|
|||||||
Reference in New Issue
Block a user