mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Merge tag 'v4.12.2' into dev
# Conflicts: # .github/workflows/win.yml # Telegram/Resources/winrc/Telegram.rc # Telegram/Resources/winrc/Updater.rc # Telegram/SourceFiles/core/version.h # Telegram/SourceFiles/settings/settings_advanced.cpp # Telegram/SourceFiles/settings/settings_main.cpp # Telegram/lib_ui # snap/snapcraft.yaml
This commit is contained in:
@@ -2023,6 +2023,19 @@ void Updates::feedUpdate(const MTPUpdate &update) {
|
||||
}
|
||||
} break;
|
||||
|
||||
case mtpc_updatePeerWallpaper: {
|
||||
const auto &d = update.c_updatePeerWallpaper();
|
||||
if (const auto peer = session().data().peerLoaded(peerFromMTP(d.vpeer()))) {
|
||||
if (const auto paper = d.vwallpaper()) {
|
||||
peer->setWallPaper(
|
||||
Data::WallPaper::Create(&session(), *paper),
|
||||
d.is_wallpaper_overridden());
|
||||
} else {
|
||||
peer->setWallPaper({});
|
||||
}
|
||||
}
|
||||
} break;
|
||||
|
||||
case mtpc_updateBotCommands: {
|
||||
const auto &d = update.c_updateBotCommands();
|
||||
if (const auto peer = session().data().peerLoaded(peerFromMTP(d.vpeer()))) {
|
||||
@@ -2358,6 +2371,14 @@ void Updates::feedUpdate(const MTPUpdate &update) {
|
||||
}
|
||||
} break;
|
||||
|
||||
case mtpc_updateChannelViewForumAsMessages: {
|
||||
const auto &d = update.c_updateChannelViewForumAsMessages();
|
||||
const auto id = ChannelId(d.vchannel_id());
|
||||
if (const auto channel = session().data().channelLoaded(id)) {
|
||||
channel->setViewAsMessagesFlag(mtpIsTrue(d.venabled()));
|
||||
}
|
||||
} break;
|
||||
|
||||
// Pinned message.
|
||||
case mtpc_updatePinnedMessages: {
|
||||
const auto &d = update.c_updatePinnedMessages();
|
||||
|
||||
Reference in New Issue
Block a user