Fixed conflict between peer update flags.
This commit is contained in:
parent
2a99046bbd
commit
6327d5ea38
|
@ -70,38 +70,38 @@ struct PeerUpdate {
|
|||
Usernames = (1ULL << 11),
|
||||
|
||||
// For users
|
||||
CanShareContact = (1ULL << 11),
|
||||
IsContact = (1ULL << 12),
|
||||
PhoneNumber = (1ULL << 13),
|
||||
OnlineStatus = (1ULL << 14),
|
||||
BotCommands = (1ULL << 15),
|
||||
BotCanBeInvited = (1ULL << 16),
|
||||
BotStartToken = (1ULL << 17),
|
||||
CommonChats = (1ULL << 18),
|
||||
HasCalls = (1ULL << 19),
|
||||
SupportInfo = (1ULL << 20),
|
||||
IsBot = (1ULL << 21),
|
||||
EmojiStatus = (1ULL << 22),
|
||||
CanShareContact = (1ULL << 12),
|
||||
IsContact = (1ULL << 13),
|
||||
PhoneNumber = (1ULL << 14),
|
||||
OnlineStatus = (1ULL << 15),
|
||||
BotCommands = (1ULL << 16),
|
||||
BotCanBeInvited = (1ULL << 17),
|
||||
BotStartToken = (1ULL << 18),
|
||||
CommonChats = (1ULL << 19),
|
||||
HasCalls = (1ULL << 20),
|
||||
SupportInfo = (1ULL << 21),
|
||||
IsBot = (1ULL << 22),
|
||||
EmojiStatus = (1ULL << 23),
|
||||
|
||||
// For chats and channels
|
||||
InviteLinks = (1ULL << 23),
|
||||
Members = (1ULL << 24),
|
||||
Admins = (1ULL << 25),
|
||||
BannedUsers = (1ULL << 26),
|
||||
Rights = (1ULL << 27),
|
||||
PendingRequests = (1ULL << 28),
|
||||
Reactions = (1ULL << 29),
|
||||
InviteLinks = (1ULL << 24),
|
||||
Members = (1ULL << 25),
|
||||
Admins = (1ULL << 26),
|
||||
BannedUsers = (1ULL << 27),
|
||||
Rights = (1ULL << 28),
|
||||
PendingRequests = (1ULL << 29),
|
||||
Reactions = (1ULL << 30),
|
||||
|
||||
// For channels
|
||||
ChannelAmIn = (1ULL << 30),
|
||||
StickersSet = (1ULL << 31),
|
||||
ChannelLinkedChat = (1ULL << 32),
|
||||
ChannelLocation = (1ULL << 33),
|
||||
Slowmode = (1ULL << 34),
|
||||
GroupCall = (1ULL << 35),
|
||||
ChannelAmIn = (1ULL << 31),
|
||||
StickersSet = (1ULL << 32),
|
||||
ChannelLinkedChat = (1ULL << 33),
|
||||
ChannelLocation = (1ULL << 34),
|
||||
Slowmode = (1ULL << 35),
|
||||
GroupCall = (1ULL << 36),
|
||||
|
||||
// For iteration
|
||||
LastUsedBit = (1ULL << 35),
|
||||
LastUsedBit = (1ULL << 36),
|
||||
};
|
||||
using Flags = base::flags<Flag>;
|
||||
friend inline constexpr auto is_flag_type(Flag) { return true; }
|
||||
|
|
Loading…
Reference in New Issue