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

Update API scheme, simplify auto-delete.

This commit is contained in:
John Preston
2021-02-15 14:31:04 +04:00
parent 05488022c7
commit 781e7a2e79
13 changed files with 95 additions and 192 deletions

View File

@@ -750,9 +750,7 @@ void ApplyChannelUpdate(
channel->clearGroupCall();
}
if (const auto ttl = update.vttl()) {
channel->applyMessagesTTL(*ttl);
}
channel->setMessagesTTL(update.vttl_period().value_or_empty());
channel->setFullFlags(update.vflags().v);
channel->setUserpicPhoto(update.vchat_photo());
if (const auto migratedFrom = update.vmigrated_from_chat_id()) {