Create channel chat to apply an update, even the update will be ignored.
This commit is contained in:
parent
4f2ad215d3
commit
ba527b7e5d
@ -7826,21 +7826,6 @@ void MessagesManager::add_pending_channel_update(DialogId dialog_id, tl_object_p
|
||||
return;
|
||||
}
|
||||
|
||||
if (new_pts <= pts && new_pts >= pts - 19999) {
|
||||
LOG(INFO) << "There is no need to process an update with PTS " << new_pts << " in " << dialog_id << " with PTS "
|
||||
<< pts;
|
||||
promise.set_value(Unit());
|
||||
return;
|
||||
}
|
||||
|
||||
if (new_pts > pts && pts != new_pts - pts_count) {
|
||||
LOG(INFO) << "Found a gap in unknown " << dialog_id << " with PTS = " << pts << ". new_pts = " << new_pts
|
||||
<< ", pts_count = " << pts_count << " in update from " << source;
|
||||
add_postponed_channel_update(dialog_id, std::move(update), new_pts, pts_count, std::move(promise));
|
||||
get_channel_difference(dialog_id, pts, new_pts, MessageId(), true, "add_pending_channel_update 3");
|
||||
return;
|
||||
}
|
||||
|
||||
d = add_dialog(dialog_id, "add_pending_channel_update 4");
|
||||
CHECK(d != nullptr);
|
||||
CHECK(d->pts == pts);
|
||||
|
Loading…
Reference in New Issue
Block a user