Fix MessagesManager::update_sent_message_contents.

GitOrigin-RevId: 5265e6d357109065790d6b6e85ddee09d25b025d
This commit is contained in:
levlam 2020-04-10 02:38:56 +03:00
parent 00a70b466d
commit b3594169b5
2 changed files with 2 additions and 1 deletions

View File

@ -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;
}

View File

@ -408,6 +408,7 @@ class PromiseActor final : public PromiseInterface<T> {
template <class T>
class FutureActor final : public Actor {
friend class PromiseActor<T>;
public:
enum State { Waiting, Ready };