mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 23:24:01 +02:00
Fix activating chat list entry from global search.
This commit is contained in:
parent
326b4eb10d
commit
6f797a17ad
1 changed files with 4 additions and 1 deletions
|
@ -2330,9 +2330,12 @@ void HistoryWidget::showHistory(
|
||||||
updateOverStates(mapFromGlobal(QCursor::pos()));
|
updateOverStates(mapFromGlobal(QCursor::pos()));
|
||||||
|
|
||||||
if (_history) {
|
if (_history) {
|
||||||
|
const auto msgId = (_showAtMsgId == ShowAtTheEndMsgId)
|
||||||
|
? ShowAtUnreadMsgId
|
||||||
|
: _showAtMsgId;
|
||||||
controller()->setActiveChatEntry({
|
controller()->setActiveChatEntry({
|
||||||
_history,
|
_history,
|
||||||
FullMsgId(_history->peer->id, _showAtMsgId) });
|
FullMsgId(_history->peer->id, msgId) });
|
||||||
}
|
}
|
||||||
update();
|
update();
|
||||||
controller()->floatPlayerAreaUpdated();
|
controller()->floatPlayerAreaUpdated();
|
||||||
|
|
Loading…
Add table
Reference in a new issue