2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-04 08:25:38 +00:00

Fix incorrect window activation on message jump.

Fixes #28275.
This commit is contained in:
John Preston
2024-08-16 10:57:30 +02:00
parent f3dca6efb7
commit 62a20ba975
2 changed files with 19 additions and 3 deletions

View File

@@ -2487,12 +2487,12 @@ void SessionController::showMessage(
std::make_shared<HistoryView::ScheduledMemento>(
item->history()),
params);
if (params.activation != anim::activation::background) {
controller->window().activate();
}
} else {
controller->content()->showMessage(item, params);
}
if (params.activation != anim::activation::background) {
controller->window().activate();
}
});
}