From 9105677325006481a334232794c76fe87a22b940 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 16 Aug 2022 07:41:32 +0300 Subject: [PATCH] Add "View Profile" even with third column info. --- Telegram/SourceFiles/window/window_peer_menu.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/window/window_peer_menu.cpp b/Telegram/SourceFiles/window/window_peer_menu.cpp index 95ff92154..d1fc681fa 100644 --- a/Telegram/SourceFiles/window/window_peer_menu.cpp +++ b/Telegram/SourceFiles/window/window_peer_menu.cpp @@ -403,9 +403,12 @@ void Filler::addInfo() { if (_peer->isSelf() || _peer->isRepliesChat()) { return; } else if (_controller->adaptive().isThreeColumn()) { - if (Core::App().settings().thirdSectionInfoEnabled() - || Core::App().settings().tabbedReplacedWithInfo()) { - return; + const auto history = _controller->activeChatCurrent().history(); + if (history && history->peer == _peer) { + if (Core::App().settings().thirdSectionInfoEnabled() + || Core::App().settings().tabbedReplacedWithInfo()) { + return; + } } } const auto controller = _controller;