Treat updates with too big pts as outdated.
This commit is contained in:
parent
eab5532688
commit
c271524019
@ -6248,7 +6248,7 @@ void MessagesManager::add_pending_update(tl_object_ptr<telegram_api::Update> &&u
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (new_pts <= old_pts) {
|
if (new_pts <= old_pts || (old_pts >= 1 && new_pts > old_pts + 500000000)) {
|
||||||
skip_old_pending_update(std::move(update), new_pts, old_pts, pts_count, source);
|
skip_old_pending_update(std::move(update), new_pts, old_pts, pts_count, source);
|
||||||
return promise.set_value(Unit());
|
return promise.set_value(Unit());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user