2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Update color index caches on palette change.

This commit is contained in:
John Preston
2023-10-23 21:29:18 +04:00
parent 4709e11e46
commit 60fb5fdaf0
22 changed files with 148 additions and 72 deletions

View File

@@ -72,41 +72,42 @@ struct PeerUpdate {
Usernames = (1ULL << 12),
TranslationDisabled = (1ULL << 13),
Color = (1ULL << 14),
BackgroundEmoji = (1ULL << 15),
// For users
CanShareContact = (1ULL << 15),
IsContact = (1ULL << 16),
PhoneNumber = (1ULL << 17),
OnlineStatus = (1ULL << 18),
BotCommands = (1ULL << 19),
BotCanBeInvited = (1ULL << 20),
BotStartToken = (1ULL << 21),
CommonChats = (1ULL << 22),
HasCalls = (1ULL << 23),
SupportInfo = (1ULL << 24),
IsBot = (1ULL << 25),
EmojiStatus = (1ULL << 26),
StoriesState = (1ULL << 27),
CanShareContact = (1ULL << 16),
IsContact = (1ULL << 17),
PhoneNumber = (1ULL << 18),
OnlineStatus = (1ULL << 19),
BotCommands = (1ULL << 20),
BotCanBeInvited = (1ULL << 21),
BotStartToken = (1ULL << 22),
CommonChats = (1ULL << 23),
HasCalls = (1ULL << 24),
SupportInfo = (1ULL << 25),
IsBot = (1ULL << 26),
EmojiStatus = (1ULL << 27),
StoriesState = (1ULL << 28),
// For chats and channels
InviteLinks = (1ULL << 28),
Members = (1ULL << 29),
Admins = (1ULL << 30),
BannedUsers = (1ULL << 31),
Rights = (1ULL << 32),
PendingRequests = (1ULL << 33),
Reactions = (1ULL << 34),
InviteLinks = (1ULL << 29),
Members = (1ULL << 30),
Admins = (1ULL << 31),
BannedUsers = (1ULL << 32),
Rights = (1ULL << 33),
PendingRequests = (1ULL << 34),
Reactions = (1ULL << 35),
// For channels
ChannelAmIn = (1ULL << 35),
StickersSet = (1ULL << 36),
ChannelLinkedChat = (1ULL << 37),
ChannelLocation = (1ULL << 38),
Slowmode = (1ULL << 39),
GroupCall = (1ULL << 40),
ChannelAmIn = (1ULL << 36),
StickersSet = (1ULL << 37),
ChannelLinkedChat = (1ULL << 38),
ChannelLocation = (1ULL << 39),
Slowmode = (1ULL << 40),
GroupCall = (1ULL << 41),
// For iteration
LastUsedBit = (1ULL << 40),
LastUsedBit = (1ULL << 41),
};
using Flags = base::flags<Flag>;
friend inline constexpr auto is_flag_type(Flag) { return true; }