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()) {
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;