2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Don't allow reordering of the archive.

This commit is contained in:
John Preston
2019-04-18 15:31:30 +04:00
parent 74c65f30f7
commit 518ff146b2
13 changed files with 62 additions and 43 deletions

View File

@@ -70,7 +70,6 @@ public:
bool isProxyPromoted() const {
return _isProxyPromoted;
}
virtual bool useProxyPromotion() const = 0;
void cacheProxyPromoted(bool promoted);
uint64 sortKeyInChatList() const {
return _sortKeyInChatList;
@@ -81,6 +80,10 @@ public:
bool needUpdateInChatList() const;
virtual TimeId adjustedChatListTimeId() const;
virtual int fixedOnTopIndex() const = 0;
static constexpr auto kArchiveFixOnTopIndex = 1;
static constexpr auto kProxyPromotionFixOnTopIndex = 2;
virtual bool toImportant() const = 0;
virtual bool shouldBeInChatList() const = 0;
virtual int chatListUnreadCount() const = 0;