2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Feed info profile placeholder.

This commit is contained in:
John Preston
2018-01-22 22:51:38 +03:00
parent b9ad8bb700
commit a47981054f
37 changed files with 1336 additions and 104 deletions

View File

@@ -3009,7 +3009,11 @@ void MainWidget::updateControlsGeometry() {
if (Auth().settings().tabbedSelectorSectionEnabled()) {
_history->pushTabbedSelectorToThirdSection(params);
} else if (Auth().settings().thirdSectionInfoEnabled()) {
_history->pushInfoToThirdSection(params);
if (const auto key = _controller->activeChatCurrent()) {
_controller->showSection(
Info::Memento::Default(key),
params.withThirdColumn());
}
}
}
} else {
@@ -3206,12 +3210,13 @@ auto MainWidget::thirdSectionForCurrentMainSection(
} else if (const auto peer = key.peer()) {
return std::make_unique<Info::Memento>(
peer->id,
Info::Memento::DefaultSection(peer));
} else {
Info::Memento::DefaultSection(key));
} else if (const auto feed = key.feed()) {
return std::make_unique<Info::Memento>(
App::self()->id,
Info::Memento::DefaultSection(App::self()));
feed,
Info::Memento::DefaultSection(key));
}
Unexpected("Key in MainWidget::thirdSectionForCurrentMainSection().");
}
void MainWidget::updateThirdColumnToCurrentChat(