mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 23:15:59 +00:00
Remove legacy #feed code.
This commit is contained in:
@@ -18,7 +18,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "storage/storage_facade.h"
|
||||
#include "core/application.h"
|
||||
#include "main/main_account.h"
|
||||
//#include "storage/storage_feed_messages.h" // #feed
|
||||
#include "main/main_session.h"
|
||||
#include "mtproto/mtproto_config.h"
|
||||
#include "apiwrap.h"
|
||||
@@ -33,16 +32,6 @@ constexpr auto kShowChatNamesCount = 8;
|
||||
|
||||
} // namespace
|
||||
|
||||
// #feed
|
||||
//MessagePosition FeedPositionFromMTP(const MTPFeedPosition &position) {
|
||||
// Expects(position.type() == mtpc_feedPosition);
|
||||
//
|
||||
// const auto &data = position.c_feedPosition();
|
||||
// return MessagePosition(data.vdate().v, FullMsgId(
|
||||
// peerToChannel(peerFromMTP(data.vpeer())),
|
||||
// data.vid().v));
|
||||
//}
|
||||
|
||||
Folder::Folder(not_null<Data::Session*> owner, FolderId id)
|
||||
: Entry(owner, Type::Folder)
|
||||
, _id(id)
|
||||
@@ -226,14 +215,6 @@ not_null<Dialogs::MainList*> Folder::chatsList() {
|
||||
}
|
||||
|
||||
void Folder::loadUserpic() {
|
||||
//constexpr auto kPaintUserpicsCount = 4; // #feed
|
||||
//auto load = kPaintUserpicsCount;
|
||||
//for (const auto history : _histories) {
|
||||
// history->peer->loadUserpic();
|
||||
// if (!--load) {
|
||||
// break;
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
void Folder::paintUserpic(
|
||||
@@ -295,18 +276,6 @@ void Folder::paintUserpic(
|
||||
}
|
||||
p.restore();
|
||||
}
|
||||
//const auto small = (size - st::lineWidth) / 2; // #feed
|
||||
//const auto delta = size - small;
|
||||
//auto index = 0;
|
||||
//for (const auto history : _histories) {
|
||||
// history->peer->paintUserpic(p, x, y, small);
|
||||
// switch (++index) {
|
||||
// case 1:
|
||||
// case 3: x += delta; break;
|
||||
// case 2: x -= delta; y += delta; break;
|
||||
// case 4: return;
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
const std::vector<not_null<History*>> &Folder::lastHistories() const {
|
||||
@@ -352,15 +321,6 @@ void Folder::applyPinnedUpdate(const MTPDupdateDialogPinned &data) {
|
||||
owner().setChatPinned(this, FilterId(), data.is_pinned());
|
||||
}
|
||||
|
||||
// #feed
|
||||
//MessagePosition Folder::unreadPosition() const {
|
||||
// return _unreadPosition.current();
|
||||
//}
|
||||
//
|
||||
//rpl::producer<MessagePosition> Folder::unreadPositionChanges() const {
|
||||
// return _unreadPosition.changes();
|
||||
//}
|
||||
|
||||
int Folder::fixedOnTopIndex() const {
|
||||
return kArchiveFixOnTopIndex;
|
||||
}
|
||||
@@ -382,7 +342,7 @@ Dialogs::UnreadState Folder::chatListUnreadState() const {
|
||||
}
|
||||
|
||||
bool Folder::chatListUnreadMark() const {
|
||||
return false; // #feed unread mark
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Folder::chatListMutedBadge() const {
|
||||
|
Reference in New Issue
Block a user