2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 07:56:03 +00:00

Show third column only when explicitly requested.

This allows you to show info in layer from mention links.
This commit is contained in:
John Preston
2017-12-04 11:33:33 +04:00
parent 629c216a7f
commit e1c68892d4
23 changed files with 184 additions and 120 deletions

View File

@@ -367,24 +367,24 @@ void Controller::showPeerHistory(
msgId);
}
void Controller::showPeerInfo(
void Navigation::showPeerInfo(
PeerId peerId,
const SectionShow &params) {
if (Adaptive::ThreeColumn()
&& !Auth().data().thirdSectionInfoEnabled()) {
Auth().data().setThirdSectionInfoEnabled(true);
Auth().saveDataDelayed();
}
//if (Adaptive::ThreeColumn()
// && !Auth().data().thirdSectionInfoEnabled()) {
// Auth().data().setThirdSectionInfoEnabled(true);
// Auth().saveDataDelayed();
//}
showSection(Info::Memento(peerId), params);
}
void Controller::showPeerInfo(
void Navigation::showPeerInfo(
not_null<PeerData*> peer,
const SectionShow &params) {
showPeerInfo(peer->id, params);
}
void Controller::showPeerInfo(
void Navigation::showPeerInfo(
not_null<History*> history,
const SectionShow &params) {
showPeerInfo(history->peer->id, params);