Add updatePeerSettings support.
GitOrigin-RevId: 0e5a18b57dea6cf82aa00996fd8ddb8fcca11313
This commit is contained in:
parent
783620b9b7
commit
a5a69812e5
@ -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) {
|
void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateWebPage> update, bool force_apply) {
|
||||||
CHECK(update != nullptr);
|
CHECK(update != nullptr);
|
||||||
td_->web_pages_manager_->on_get_web_page(std::move(update->webpage_), DialogId());
|
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::updatePeerLocated> update, bool /*force_apply*/) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdatesManager::on_update(tl_object_ptr<telegram_api::updatePeerSettings> update, bool /*force_apply*/) {
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace td
|
} // namespace td
|
||||||
|
@ -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::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::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::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::updateWebPage> update, bool force_apply);
|
||||||
void on_update(tl_object_ptr<telegram_api::updateChannelWebPage> 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
|
// unsupported updates
|
||||||
|
|
||||||
void on_update(tl_object_ptr<telegram_api::updatePeerLocated> update, bool /*force_apply*/);
|
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
|
} // namespace td
|
||||||
|
Reference in New Issue
Block a user