2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Hide shared media layer on jump to message in topic.

This commit is contained in:
John Preston
2023-02-21 10:23:57 +04:00
parent 1cf50f95ac
commit b8c510ca6d

View File

@@ -1576,6 +1576,9 @@ void MainWidget::showSection(
if (_mainSection && _mainSection->showInternal(
memento.get(),
params)) {
if (params.activation != anim::activation::background) {
_controller->window().hideSettingsAndLayer();
}
if (const auto entry = _mainSection->activeChat(); entry.key) {
_controller->setActiveChatEntry(entry);
}