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