From c693fcb2b06def95a9533cecfbbcbcb1aa041696 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 1 Oct 2020 17:20:08 +0300 Subject: [PATCH] Reopen third column in Replies section. Fixes #8674, fixes #8687. --- Telegram/SourceFiles/mainwidget.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/mainwidget.cpp b/Telegram/SourceFiles/mainwidget.cpp index 97b9c2b4de..c0855a983b 100644 --- a/Telegram/SourceFiles/mainwidget.cpp +++ b/Telegram/SourceFiles/mainwidget.cpp @@ -2153,7 +2153,11 @@ void MainWidget::updateControlsGeometry() { const auto active = _controller->activeChatCurrent(); if (const auto peer = active.peer()) { if (Core::App().settings().tabbedSelectorSectionEnabled()) { - _history->pushTabbedSelectorToThirdSection(peer, params); + if (_mainSection) { + _mainSection->pushTabbedSelectorToThirdSection(peer, params); + } else { + _history->pushTabbedSelectorToThirdSection(peer, params); + } } else if (Core::App().settings().thirdSectionInfoEnabled()) { _controller->showSection( Info::Memento::Default(peer), @@ -2412,7 +2416,9 @@ void MainWidget::updateThirdColumnToCurrentChat( }; auto switchTabbedFast = [&](not_null peer) { saveOldThirdSection(); - return _history->pushTabbedSelectorToThirdSection(peer, params); + return _mainSection + ? _mainSection->pushTabbedSelectorToThirdSection(peer, params) + : _history->pushTabbedSelectorToThirdSection(peer, params); }; if (Adaptive::ThreeColumn() && settings.tabbedSelectorSectionEnabled()