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

Create dialog rows only with known folders.

This commit is contained in:
John Preston
2019-04-18 13:00:38 +04:00
parent 854870683b
commit f3ed7a674a
7 changed files with 50 additions and 27 deletions

View File

@@ -79,6 +79,7 @@ public:
void setChatListTimeId(TimeId date);
virtual void updateChatListExistence();
bool needUpdateInChatList() const;
virtual TimeId adjustedChatListTimeId() const;
virtual bool toImportant() const = 0;
virtual bool shouldBeInChatList() const = 0;
@@ -92,6 +93,9 @@ public:
virtual const base::flat_set<QString> &chatListNameWords() const = 0;
virtual const base::flat_set<QChar> &chatListFirstLetters() const = 0;
virtual bool folderKnown() const {
return true;
}
virtual Data::Folder *folder() const {
return nullptr;
}
@@ -119,7 +123,6 @@ public:
mutable Text lastItemTextCache;
private:
virtual TimeId adjustChatListTimeId() const;
virtual void changedInChatListHook(Mode list, bool added);
virtual void changedChatListPinHook();