mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Remove legacy #feed code.
This commit is contained in:
@@ -134,8 +134,6 @@ void WrapWidget::startInjectingActivePeerProfiles() {
|
||||
void WrapWidget::injectActiveProfile(Dialogs::Key key) {
|
||||
if (const auto peer = key.peer()) {
|
||||
injectActivePeerProfile(peer);
|
||||
//} else if (const auto feed = key.feed()) { // #feed
|
||||
// injectActiveFeedProfile(feed);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -170,22 +168,6 @@ void WrapWidget::injectActivePeerProfile(not_null<PeerData*> peer) {
|
||||
Memento(peer, section).takeStack().front()));
|
||||
}
|
||||
}
|
||||
// // #feed
|
||||
//void WrapWidget::injectActiveFeedProfile(not_null<Data::Feed*> feed) {
|
||||
// const auto firstFeed = hasStackHistory()
|
||||
// ? _historyStack.front().section->feed()
|
||||
// : _controller->feed();
|
||||
// const auto firstSectionType = hasStackHistory()
|
||||
// ? _historyStack.front().section->section().type()
|
||||
// : _controller->section().type();
|
||||
// const auto expectedType = Section::Type::Profile;
|
||||
// if (firstSectionType != expectedType
|
||||
// || firstFeed != feed) {
|
||||
// auto section = Section(Section::Type::Profile);
|
||||
// injectActiveProfileMemento(std::move(
|
||||
// Memento(feed, section).takeStack().front()));
|
||||
// }
|
||||
//}
|
||||
|
||||
void WrapWidget::injectActiveProfileMemento(
|
||||
std::shared_ptr<ContentMemento> memento) {
|
||||
@@ -217,8 +199,6 @@ Key WrapWidget::key() const {
|
||||
Dialogs::RowDescriptor WrapWidget::activeChat() const {
|
||||
if (const auto peer = key().peer()) {
|
||||
return Dialogs::RowDescriptor(peer->owner().history(peer), FullMsgId());
|
||||
//} else if (const auto feed = key().feed()) { // #feed
|
||||
// return Dialogs::RowDescriptor(feed, FullMsgId());
|
||||
} else if (key().settingsSelf() || key().poll()) {
|
||||
return Dialogs::RowDescriptor();
|
||||
}
|
||||
@@ -582,12 +562,6 @@ void WrapWidget::showTopBarMenu() {
|
||||
.section = Dialogs::EntryState::Section::Profile,
|
||||
},
|
||||
addAction);
|
||||
//} else if (const auto feed = key().feed()) { // #feed
|
||||
// Window::FillFeedMenu(
|
||||
// _controller->parentController(),
|
||||
// feed,
|
||||
// addAction,
|
||||
// Window::PeerMenuSource::Profile);
|
||||
} else if (const auto self = key().settingsSelf()) {
|
||||
const auto showOther = [=](::Settings::Type type) {
|
||||
const auto controller = _controller.get();
|
||||
|
Reference in New Issue
Block a user