Fix activating chat list entry from global search.
This commit is contained in:
parent
326b4eb10d
commit
6f797a17ad
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue