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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user