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

Use color index from API.

This commit is contained in:
John Preston
2023-10-16 13:52:08 +04:00
parent f90a010b84
commit 4b6107fa56
26 changed files with 282 additions and 149 deletions

View File

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