diff options
| author | levlam <levlam@telegram.org> | 2025-04-03 10:38:00 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2025-04-03 10:38:00 +0300 |
| commit | bfaee4aa83200bacd58766adb9ef35ef740add08 (patch) | |
| tree | e4a92e35d8687d74855f5d1ef77b9935fe31bc57 /td/telegram/AutoDownloadSettings.cpp | |
| parent | e39c1c0e0cb8cd2ced31efdcfd7de00ec9501dd1 (diff) | |
Use bool parameters in account.* requests.
Diffstat (limited to 'td/telegram/AutoDownloadSettings.cpp')
| -rw-r--r-- | td/telegram/AutoDownloadSettings.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/td/telegram/AutoDownloadSettings.cpp b/td/telegram/AutoDownloadSettings.cpp index 3e8a9c5d6..a591a6072 100644 --- a/td/telegram/AutoDownloadSettings.cpp +++ b/td/telegram/AutoDownloadSettings.cpp @@ -76,15 +76,8 @@ class SaveAutoDownloadSettingsQuery final : public Td::ResultHandler { } void send(NetType type, const AutoDownloadSettings &settings) { - int32 flags = 0; - if (type == NetType::MobileRoaming) { - flags |= telegram_api::account_saveAutoDownloadSettings::LOW_MASK; - } - if (type == NetType::WiFi) { - flags |= telegram_api::account_saveAutoDownloadSettings::HIGH_MASK; - } send_query(G()->net_query_creator().create(telegram_api::account_saveAutoDownloadSettings( - flags, false /*ignored*/, false /*ignored*/, get_input_auto_download_settings(settings)))); + 0, type == NetType::MobileRoaming, type == NetType::WiFi, get_input_auto_download_settings(settings)))); } void on_result(BufferSlice packet) final { |
