From b8c510ca6daeed2b622f8827da0f76b14c52d3c9 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 21 Feb 2023 10:23:57 +0400 Subject: [PATCH] Hide shared media layer on jump to message in topic. --- Telegram/SourceFiles/mainwidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Telegram/SourceFiles/mainwidget.cpp b/Telegram/SourceFiles/mainwidget.cpp index bbe7af52e..aebf652fe 100644 --- a/Telegram/SourceFiles/mainwidget.cpp +++ b/Telegram/SourceFiles/mainwidget.cpp @@ -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); }