diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index f02c492bb..e8096e2cc 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -12576,6 +12576,11 @@ void MessagesManager::tear_down() { parent_.reset(); } +void MessagesManager::hangup() { + postponed_channel_updates_.clear(); + stop(); +} + void MessagesManager::start_up() { init(); } diff --git a/td/telegram/MessagesManager.h b/td/telegram/MessagesManager.h index b2c6f8572..65c54533f 100644 --- a/td/telegram/MessagesManager.h +++ b/td/telegram/MessagesManager.h @@ -2789,9 +2789,13 @@ class MessagesManager final : public Actor { void on_message_ttl_expired_impl(Dialog *d, Message *m); void start_up() final; + void loop() final; + void tear_down() final; + void hangup() final; + void create_folders(); void init();