mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Hide shared media layer on jump to message in topic.
This commit is contained in:
parent
1cf50f95ac
commit
b8c510ca6d
1 changed files with 3 additions and 0 deletions
|
@ -1576,6 +1576,9 @@ void MainWidget::showSection(
|
||||||
if (_mainSection && _mainSection->showInternal(
|
if (_mainSection && _mainSection->showInternal(
|
||||||
memento.get(),
|
memento.get(),
|
||||||
params)) {
|
params)) {
|
||||||
|
if (params.activation != anim::activation::background) {
|
||||||
|
_controller->window().hideSettingsAndLayer();
|
||||||
|
}
|
||||||
if (const auto entry = _mainSection->activeChat(); entry.key) {
|
if (const auto entry = _mainSection->activeChat(); entry.key) {
|
||||||
_controller->setActiveChatEntry(entry);
|
_controller->setActiveChatEntry(entry);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue