Allow all updateUser updates before authorization.

This commit is contained in:
levlam 2021-12-30 21:01:14 +03:00
parent 01ff608cfa
commit d95441a48d
1 changed files with 1 additions and 1 deletions

View File

@ -4231,7 +4231,7 @@ bool Client::allow_update_before_authorization(const td_api::Object *update) con
return name == "my_id" || name == "unix_time";
}
if (update_id == td_api::updateUser::ID) {
return static_cast<const td_api::updateUser *>(update)->user_->id_ == my_id_;
return true;
}
return false;
}