Add updatePeerSettings support.

GitOrigin-RevId: 0e5a18b57dea6cf82aa00996fd8ddb8fcca11313
This commit is contained in:
levlam 2019-10-10 19:07:49 +03:00
parent 783620b9b7
commit a5a69812e5
2 changed files with 5 additions and 5 deletions

View File

@ -1532,6 +1532,10 @@ void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateNotifySettings>
}
}
void UpdatesManager::on_update(tl_object_ptr<telegram_api::updatePeerSettings> update, bool /*force_apply*/) {
td_->messages_manager_->on_get_peer_settings(DialogId(update->peer_), std::move(update->settings_));
}
void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateWebPage> update, bool force_apply) {
CHECK(update != nullptr);
td_->web_pages_manager_->on_get_web_page(std::move(update->webpage_), DialogId());
@ -1904,7 +1908,4 @@ void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateMessagePoll> up
void UpdatesManager::on_update(tl_object_ptr<telegram_api::updatePeerLocated> update, bool /*force_apply*/) {
}
void UpdatesManager::on_update(tl_object_ptr<telegram_api::updatePeerSettings> update, bool /*force_apply*/) {
}
} // namespace td

View File

@ -189,6 +189,7 @@ class UpdatesManager : public Actor {
void on_update(tl_object_ptr<telegram_api::updateReadHistoryInbox> update, bool force_apply);
void on_update(tl_object_ptr<telegram_api::updateReadHistoryOutbox> update, bool force_apply);
void on_update(tl_object_ptr<telegram_api::updateNotifySettings> update, bool /*force_apply*/);
void on_update(tl_object_ptr<telegram_api::updatePeerSettings> update, bool /*force_apply*/);
void on_update(tl_object_ptr<telegram_api::updateWebPage> update, bool force_apply);
void on_update(tl_object_ptr<telegram_api::updateChannelWebPage> update, bool force_apply);
@ -281,8 +282,6 @@ class UpdatesManager : public Actor {
// unsupported updates
void on_update(tl_object_ptr<telegram_api::updatePeerLocated> update, bool /*force_apply*/);
void on_update(tl_object_ptr<telegram_api::updatePeerSettings> update, bool /*force_apply*/);
};
} // namespace td