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

Support basic feed display in chats list.

This commit is contained in:
John Preston
2018-01-05 18:57:18 +03:00
parent 9d2239291d
commit 782e70b171
28 changed files with 1092 additions and 527 deletions

View File

@@ -58,6 +58,9 @@ public:
Data::Feed *feed() const {
return _id.feed();
}
not_null<Entry*> entry() const {
return _id.entry();
}
QString name() const {
return _id.name();
}
@@ -65,7 +68,7 @@ public:
return _pos;
}
uint64 sortKey() const {
return _id.sortKey();
return _id.entry()->sortKeyInChatList();
}
// for any attached data, for example View in contacts list