2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Show custom chat wallpapers in chats.

This commit is contained in:
John Preston
2023-04-17 13:43:08 +04:00
parent 5cbf9a2dc4
commit bf27185feb
20 changed files with 369 additions and 121 deletions

View File

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