Support telegram_api::updateAutoSaveSettings.
This commit is contained in:
parent
39f4091ac5
commit
7556ef4b18
@ -232,9 +232,11 @@ void AutosaveManager::on_get_autosave_settings(
|
||||
|
||||
auto promises = std::move(load_settings_queries_);
|
||||
for (auto &promise : promises) {
|
||||
if (promise) {
|
||||
promise.set_value(settings_.get_autosave_settings_object());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void AutosaveManager::set_autosave_settings(td_api::object_ptr<td_api::AutosaveSettingsScope> &&scope,
|
||||
td_api::object_ptr<td_api::scopeAutosaveSettings> &&settings,
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include "td/telegram/AnimationsManager.h"
|
||||
#include "td/telegram/AttachMenuManager.h"
|
||||
#include "td/telegram/AuthManager.h"
|
||||
#include "td/telegram/AutosaveManager.h"
|
||||
#include "td/telegram/CallbackQueriesManager.h"
|
||||
#include "td/telegram/CallManager.h"
|
||||
#include "td/telegram/ChannelId.h"
|
||||
@ -3915,10 +3916,11 @@ void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateTranscribedAudi
|
||||
promise.set_value(Unit());
|
||||
}
|
||||
|
||||
// unsupported updates
|
||||
|
||||
void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateAutoSaveSettings> update, Promise<Unit> &&promise) {
|
||||
td_->autosave_manager_->reload_autosave_settings(Auto());
|
||||
promise.set_value(Unit());
|
||||
}
|
||||
|
||||
// unsupported updates
|
||||
|
||||
} // namespace td
|
||||
|
@ -584,9 +584,9 @@ class UpdatesManager final : public Actor {
|
||||
|
||||
void on_update(tl_object_ptr<telegram_api::updateTranscribedAudio> update, Promise<Unit> &&promise);
|
||||
|
||||
// unsupported updates
|
||||
|
||||
void on_update(tl_object_ptr<telegram_api::updateAutoSaveSettings> update, Promise<Unit> &&promise);
|
||||
|
||||
// unsupported updates
|
||||
};
|
||||
|
||||
} // namespace td
|
||||
|
Loading…
x
Reference in New Issue
Block a user