Postpone updates in unknown channels with running getDifference.

This commit is contained in:
levlam 2021-08-02 05:52:47 +03:00
parent 3156492c2f
commit 6ef446c642

View File

@ -7320,7 +7320,7 @@ void MessagesManager::add_pending_channel_update(DialogId dialog_id, tl_object_p
// if there is no dialog, it can be created by the update
LOG(INFO) << "Receive pending update from " << source << " about unknown " << dialog_id;
if (running_get_channel_difference(dialog_id)) {
promise.set_value(Unit());
add_postponed_channel_update(dialog_id, std::move(update), new_pts, pts_count, std::move(promise));
return;
}
} else {