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:
@@ -367,24 +367,24 @@ void Controller::showPeerHistory(
|
||||
msgId);
|
||||
}
|
||||
|
||||
void Controller::showPeerInfo(
|
||||
void Navigation::showPeerInfo(
|
||||
PeerId peerId,
|
||||
const SectionShow ¶ms) {
|
||||
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 ¶ms) {
|
||||
showPeerInfo(peer->id, params);
|
||||
}
|
||||
|
||||
void Controller::showPeerInfo(
|
||||
void Navigation::showPeerInfo(
|
||||
not_null<History*> history,
|
||||
const SectionShow ¶ms) {
|
||||
showPeerInfo(history->peer->id, params);
|
||||
|
Reference in New Issue
Block a user