Add "View Profile" even with third column info.

This commit is contained in:
John Preston 2022-08-16 07:41:32 +03:00
parent 7c2d3a8855
commit 9105677325

View file

@ -403,9 +403,12 @@ void Filler::addInfo() {
if (_peer->isSelf() || _peer->isRepliesChat()) { if (_peer->isSelf() || _peer->isRepliesChat()) {
return; return;
} else if (_controller->adaptive().isThreeColumn()) { } else if (_controller->adaptive().isThreeColumn()) {
if (Core::App().settings().thirdSectionInfoEnabled() const auto history = _controller->activeChatCurrent().history();
|| Core::App().settings().tabbedReplacedWithInfo()) { if (history && history->peer == _peer) {
return; if (Core::App().settings().thirdSectionInfoEnabled()
|| Core::App().settings().tabbedReplacedWithInfo()) {
return;
}
} }
} }
const auto controller = _controller; const auto controller = _controller;