[chat] Fix some bugs in modern chat view.

This commit is contained in:
John Preston
2026-06-12 14:03:52 +04:00
parent f33088d07b
commit 39f3ae7c6b
12 changed files with 315 additions and 61 deletions

View File

@@ -1470,6 +1470,17 @@ void MainWidget::showHistory(
if (peerId && OptionUseNewChatView.value()) {
const auto history = session().data().history(peerId);
if (showAtMsgId == ShowAndStartBotMsgId) {
if (const auto user = history->peer->asUser()) {
if (const auto &info = user->botInfo) {
const auto wasState
= _controller->dialogsEntryStateCurrent();
if (wasState.key) {
info->inlineReturnTo = wasState;
}
}
}
}
using namespace HistoryView;
auto memento = std::make_shared<ChatMemento>(
ChatViewId{ .history = history },