Fix typos

This commit is contained in:
Marco Aceti 2020-11-12 23:40:31 +01:00
parent 8524f94883
commit b3c0c403e8
Signed by: MarcoBuster
GPG Key ID: E4ABA81298E4F14D
2 changed files with 2 additions and 2 deletions

View File

@ -3805,7 +3805,7 @@ void Client::on_update_file(object_ptr<td_api::file> file) {
if (!is_file_being_downloaded(file_id)) {
return;
}
if ((!parameters_->local_mode_ || !parameters_->no_file_limit) && file->local_->downloaded_size_ > MAX_DOWNLOAD_FILE_SIZE) {
if ((!parameters_->local_mode_ || !parameters_->no_file_limit_) && file->local_->downloaded_size_ > MAX_DOWNLOAD_FILE_SIZE) {
if (file->local_->is_downloading_active_) {
send_request(make_object<td_api::cancelDownloadFile>(file_id, false),
std::make_unique<TdOnCancelDownloadFileCallback>());

View File

@ -57,7 +57,7 @@ struct ClientParameters {
bool local_mode_ = false;
bool allow_http_ = false;
bool use_relative_path_ = false;
bool no_file_limit = true;
bool no_file_limit_ = true;
td::int32 api_id_ = 0;
td::string api_hash_;