Add ContactsManager::after_get_difference.
GitOrigin-RevId: 9fdea971dd5320da59b0aaeba45bff0c3ea2fc0e
This commit is contained in:
parent
0eff518c4e
commit
61b770c5a7
@ -9933,6 +9933,10 @@ UserId ContactsManager::get_support_user(Promise<Unit> &&promise) {
|
|||||||
return UserId();
|
return UserId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ContactsManager::after_get_difference() {
|
||||||
|
get_user(get_my_id(), 3, Promise<Unit>());
|
||||||
|
}
|
||||||
|
|
||||||
void ContactsManager::get_current_state(vector<td_api::object_ptr<td_api::Update>> &updates) const {
|
void ContactsManager::get_current_state(vector<td_api::object_ptr<td_api::Update>> &updates) const {
|
||||||
for (auto &it : users_) {
|
for (auto &it : users_) {
|
||||||
updates.push_back(td_api::make_object<td_api::updateUser>(get_user_object(it.first, &it.second)));
|
updates.push_back(td_api::make_object<td_api::updateUser>(get_user_object(it.first, &it.second)));
|
||||||
|
@ -443,6 +443,8 @@ class ContactsManager : public Actor {
|
|||||||
|
|
||||||
UserId get_support_user(Promise<Unit> &&promise);
|
UserId get_support_user(Promise<Unit> &&promise);
|
||||||
|
|
||||||
|
void after_get_difference();
|
||||||
|
|
||||||
void get_current_state(vector<td_api::object_ptr<td_api::Update>> &updates) const;
|
void get_current_state(vector<td_api::object_ptr<td_api::Update>> &updates) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -6551,9 +6551,6 @@ void MessagesManager::after_get_difference() {
|
|||||||
|
|
||||||
load_notification_settings();
|
load_notification_settings();
|
||||||
|
|
||||||
// TODO move to ContactsManager or delete after users will become persistent
|
|
||||||
td_->contacts_manager_->get_user(td_->contacts_manager_->get_my_id(), 3, Promise<Unit>());
|
|
||||||
|
|
||||||
// TODO resend some messages
|
// TODO resend some messages
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1093,6 +1093,7 @@ void UpdatesManager::after_get_difference() {
|
|||||||
state_ = saved_state;
|
state_ = saved_state;
|
||||||
|
|
||||||
td_->animations_manager_->after_get_difference();
|
td_->animations_manager_->after_get_difference();
|
||||||
|
td_->contacts_manager_->after_get_difference();
|
||||||
td_->inline_queries_manager_->after_get_difference();
|
td_->inline_queries_manager_->after_get_difference();
|
||||||
td_->messages_manager_->after_get_difference();
|
td_->messages_manager_->after_get_difference();
|
||||||
td_->stickers_manager_->after_get_difference();
|
td_->stickers_manager_->after_get_difference();
|
||||||
|
Loading…
Reference in New Issue
Block a user