Fix MessagesManager closing.

This commit is contained in:
levlam 2021-11-07 15:20:15 +03:00
parent 1bd9e0f622
commit 911c5fc32b
2 changed files with 9 additions and 0 deletions

View File

@ -12576,6 +12576,11 @@ void MessagesManager::tear_down() {
parent_.reset();
}
void MessagesManager::hangup() {
postponed_channel_updates_.clear();
stop();
}
void MessagesManager::start_up() {
init();
}

View File

@ -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();