Fix emoji panel section appearance in topics.

This commit is contained in:
John Preston 2022-11-09 10:59:27 +04:00
parent 3fad69d3c8
commit 187f5fa4f3

View file

@ -1816,9 +1816,17 @@ void MainWidget::showNewSection(
updateControlsGeometry();
} else {
_mainSection = std::move(newMainSection);
updateControlsGeometry();
_history->finishAnimating();
_history->showHistory(0, 0);
if (const auto entry = _mainSection->activeChat(); entry.key) {
_controller->setActiveChatEntry(entry);
}
// Depends on SessionController::activeChatEntry
// for tabbed selector showing in the third column.
updateControlsGeometry();
_history->hide();
if (isOneColumn() && _dialogs) {
_dialogs->hide();
@ -1838,12 +1846,6 @@ void MainWidget::showNewSection(
settingSection->showFast();
}
if (settingSection.data() == _mainSection.data()) {
if (const auto entry = _mainSection->activeChat(); entry.key) {
_controller->setActiveChatEntry(entry);
}
}
floatPlayerCheckVisibility();
orderWidgets();
}