2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +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

@@ -256,9 +256,7 @@ void ApplyUserUpdate(not_null<UserData*> user, const MTPDuserFull &update) {
MTP_inputNotifyPeer(user->input),
update.vnotify_settings());
if (const auto ttl = update.vttl()) {
user->applyMessagesTTL(*ttl);
}
user->setMessagesTTL(update.vttl_period().value_or_empty());
if (const auto info = update.vbot_info()) {
user->setBotInfo(*info);
} else {