Fix getTermsOfServiceUpdate for bots.
GitOrigin-RevId: 177f5362015dd78e8ef94cbbfc57b8dd49984655
This commit is contained in:
parent
427918d8f9
commit
69a3eecbcc
@ -3892,7 +3892,7 @@ void Td::on_get_terms_of_service(Result<std::pair<int32, TermsOfService>> result
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Td::schedule_get_terms_of_service(int32 expires_in) {
|
void Td::schedule_get_terms_of_service(int32 expires_in) {
|
||||||
if (!close_flag_) {
|
if (!close_flag_ && !auth_manager_->is_bot()) {
|
||||||
alarm_timeout_.set_timeout_in(TERMS_OF_SERVICE_ALARM_ID, expires_in);
|
alarm_timeout_.set_timeout_in(TERMS_OF_SERVICE_ALARM_ID, expires_in);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user