2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Implement personal channel selector.

This commit is contained in:
John Preston
2024-03-29 11:21:57 +04:00
parent ab74ed0fa7
commit 280d69d346
8 changed files with 238 additions and 26 deletions

View File

@@ -90,27 +90,28 @@ struct PeerUpdate {
EmojiStatus = (1ULL << 28),
BusinessDetails = (1ULL << 29),
Birthday = (1ULL << 30),
PersonalChannel = (1ULL << 31),
// For chats and channels
InviteLinks = (1ULL << 31),
Members = (1ULL << 32),
Admins = (1ULL << 33),
BannedUsers = (1ULL << 34),
Rights = (1ULL << 35),
PendingRequests = (1ULL << 36),
Reactions = (1ULL << 37),
InviteLinks = (1ULL << 32),
Members = (1ULL << 33),
Admins = (1ULL << 34),
BannedUsers = (1ULL << 35),
Rights = (1ULL << 36),
PendingRequests = (1ULL << 37),
Reactions = (1ULL << 38),
// For channels
ChannelAmIn = (1ULL << 38),
StickersSet = (1ULL << 39),
EmojiSet = (1ULL << 40),
ChannelLinkedChat = (1ULL << 41),
ChannelLocation = (1ULL << 42),
Slowmode = (1ULL << 43),
GroupCall = (1ULL << 44),
ChannelAmIn = (1ULL << 39),
StickersSet = (1ULL << 40),
EmojiSet = (1ULL << 41),
ChannelLinkedChat = (1ULL << 42),
ChannelLocation = (1ULL << 43),
Slowmode = (1ULL << 44),
GroupCall = (1ULL << 45),
// For iteration
LastUsedBit = (1ULL << 44),
LastUsedBit = (1ULL << 45),
};
using Flags = base::flags<Flag>;
friend inline constexpr auto is_flag_type(Flag) { return true; }