2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +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

@@ -94,7 +94,7 @@ void Folder::registerOne(not_null<History*> history) {
}
}
if (_chatsList.size() == 1) {
updateChatListExistence();
updateChatListSortPosition();
}
owner().notifyFolderUpdated(this, FolderUpdateFlag::List);
}
@@ -426,8 +426,8 @@ bool Folder::toImportant() const {
return !_importantChatsList.empty();
}
bool Folder::useProxyPromotion() const {
return false;
int Folder::fixedOnTopIndex() const {
return kArchiveFixOnTopIndex;
}
bool Folder::shouldBeInChatList() const {