2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Comment out non-folder feed code.

This commit is contained in:
John Preston
2019-04-15 15:54:03 +04:00
parent 905a024aed
commit 9bf8a8108d
57 changed files with 1392 additions and 1459 deletions

View File

@@ -12,7 +12,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_user.h"
#include "data/data_chat.h"
#include "data/data_session.h"
#include "data/data_feed.h"
#include "data/data_folder.h"
#include "observer_peer.h"
#include "auth_session.h"
#include "apiwrap.h"
@@ -306,27 +306,27 @@ void ChannelData::setAvailableMinId(MsgId availableMinId) {
}
}
}
void ChannelData::setFeed(not_null<Data::Feed*> feed) {
setFeedPointer(feed);
}
void ChannelData::clearFeed() {
setFeedPointer(nullptr);
}
void ChannelData::setFeedPointer(Data::Feed *feed) {
if (_feed != feed) {
const auto was = _feed;
_feed = feed;
if (was) {
was->unregisterOne(this);
}
if (_feed) {
_feed->registerOne(this);
}
}
}
// #TODO archive
//void ChannelData::setFeed(not_null<Data::Feed*> feed) {
// setFeedPointer(feed);
//}
//
//void ChannelData::clearFeed() {
// setFeedPointer(nullptr);
//}
//
//void ChannelData::setFeedPointer(Data::Feed *feed) {
// if (_feed != feed) {
// const auto was = _feed;
// _feed = feed;
// if (was) {
// was->unregisterOne(this);
// }
// if (_feed) {
// _feed->registerOne(this);
// }
// }
//}
bool ChannelData::canBanMembers() const {
return amCreator()