Fix activating chat list entry from global search.

This commit is contained in:
John Preston 2023-02-04 21:19:36 +04:00
parent 326b4eb10d
commit 6f797a17ad
1 changed files with 4 additions and 1 deletions

View File

@ -2330,9 +2330,12 @@ void HistoryWidget::showHistory(
updateOverStates(mapFromGlobal(QCursor::pos()));
if (_history) {
const auto msgId = (_showAtMsgId == ShowAtTheEndMsgId)
? ShowAtUnreadMsgId
: _showAtMsgId;
controller()->setActiveChatEntry({
_history,
FullMsgId(_history->peer->id, _showAtMsgId) });
FullMsgId(_history->peer->id, msgId) });
}
update();
controller()->floatPlayerAreaUpdated();