2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Added ability to cache filter colors in dialog entries.

This commit is contained in:
23rd
2024-11-20 07:49:32 +03:00
parent f888008dc1
commit d5dbde0a24
2 changed files with 30 additions and 0 deletions

View File

@@ -254,6 +254,7 @@ public:
return _chatListPeerBadge;
}
[[nodiscard]] bool hasChatsFilterTags(FilterId exclude) const;
protected:
void notifyUnreadStateChange(const UnreadState &wasState);
inline auto unreadStateChangeNotifier(bool required);
@@ -284,6 +285,7 @@ private:
uint64 _sortKeyInChatList = 0;
uint64 _sortKeyByDate = 0;
base::flat_map<FilterId, int> _pinnedIndex;
base::flat_map<FilterId, uint8> _tagColors;
mutable Ui::PeerBadge _chatListPeerBadge;
mutable Ui::Text::String _chatListNameText;
mutable int _chatListNameVersion = 0;