aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/AutoDownloadSettings.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2019-12-25 20:59:19 +0300
committerlevlam <levlam@telegram.org>2019-12-25 20:59:19 +0300
commit4e77501d9e6334bdbce4bf61f0dfd6821b4de8f3 (patch)
treea9af06c271ff46d11bd698a35ec9fcb333632db4 /td/telegram/AutoDownloadSettings.cpp
parent1fc1b76d5e3b482de2a3aca38fee41bbab80ac7e (diff)
Rename field to video_upload_bitrate.
GitOrigin-RevId: 0e6af52c8558086e7aac3b950609cdf2b2da1892
Diffstat (limited to 'td/telegram/AutoDownloadSettings.cpp')
-rw-r--r--td/telegram/AutoDownloadSettings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/td/telegram/AutoDownloadSettings.cpp b/td/telegram/AutoDownloadSettings.cpp
index 472c46e95..fb39e2361 100644
--- a/td/telegram/AutoDownloadSettings.cpp
+++ b/td/telegram/AutoDownloadSettings.cpp
@@ -76,7 +76,7 @@ telegram_api::object_ptr<telegram_api::autoDownloadSettings> get_input_auto_down
}
return telegram_api::make_object<telegram_api::autoDownloadSettings>(
flags, false /*ignored*/, false /*ignored*/, false /*ignored*/, false /*ignored*/, settings.max_photo_file_size,
- settings.max_video_file_size, settings.max_other_file_size, settings.max_video_upload_bitrate);
+ settings.max_video_file_size, settings.max_other_file_size, settings.video_upload_bitrate);
}
class SaveAutoDownloadSettingsQuery : public Td::ResultHandler {
@@ -119,7 +119,7 @@ AutoDownloadSettings get_auto_download_settings(const td_api::object_ptr<td_api:
result.max_photo_file_size = settings->max_photo_file_size_;
result.max_video_file_size = settings->max_video_file_size_;
result.max_other_file_size = settings->max_other_file_size_;
- result.max_video_upload_bitrate = settings->max_video_upload_bitrate_;
+ result.video_upload_bitrate = settings->video_upload_bitrate_;
result.is_enabled = settings->is_auto_download_enabled_;
result.preload_large_videos = settings->preload_large_videos_;
result.preload_next_audio = settings->preload_next_audio_;