Attempted to fix reset state while replying with Ctrl+Up/Down hotkey.

The previous fix: e672041a79.
Regression was introduced: a05d85673a.
This commit is contained in:
23rd
2026-02-09 20:24:44 +03:00
parent 7884b7de44
commit 2a28b53400
@@ -9035,9 +9035,6 @@ bool HistoryWidget::cancelReply(
_fieldBarCancel->hide();
updateMouseTracking();
}
if (!keepHighlighterState) {
_highlighter.clear();
}
updateBotKeyboard();
refreshTopBarActiveChat();
updateCanSendMessage();
@@ -9065,6 +9062,9 @@ bool HistoryWidget::cancelReply(
toggleKeyboard(false);
}
}
if (!keepHighlighterState) {
_highlighter.clear();
}
return wasReply;
}