From b3594169b5bb4741211ed2cdf163c0eef2d61df5 Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 10 Apr 2020 02:38:56 +0300 Subject: [PATCH] Fix MessagesManager::update_sent_message_contents. GitOrigin-RevId: 5265e6d357109065790d6b6e85ddee09d25b025d --- td/telegram/MessagesManager.cpp | 2 +- tdactor/td/actor/PromiseFuture.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 01416be9c..740d89768 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -29366,7 +29366,7 @@ void MessagesManager::speculatively_update_channel_participants(DialogId dialog_ void MessagesManager::update_sent_message_contents(DialogId dialog_id, const Message *m) { CHECK(m != nullptr); if (td_->auth_manager_->is_bot() || (!m->is_outgoing && dialog_id != get_my_dialog_id()) || - dialog_id.get_type() == DialogType::SecretChat || !m->message_id.is_local() || m->forward_info != nullptr || + dialog_id.get_type() == DialogType::SecretChat || m->message_id.is_local() || m->forward_info != nullptr || m->had_forward_info) { return; } diff --git a/tdactor/td/actor/PromiseFuture.h b/tdactor/td/actor/PromiseFuture.h index bd3f4b805..b5dda83ae 100644 --- a/tdactor/td/actor/PromiseFuture.h +++ b/tdactor/td/actor/PromiseFuture.h @@ -408,6 +408,7 @@ class PromiseActor final : public PromiseInterface { template class FutureActor final : public Actor { friend class PromiseActor; + public: enum State { Waiting, Ready };