mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +00:00
Support cloud view_as_messages forum setting.
This commit is contained in:
@@ -2326,6 +2326,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