Silently ignore PERSISTENT_TIMESTAMP_INVALID errors for channels.getDifference.

This commit is contained in:
levlam 2023-01-02 17:06:26 +03:00
parent 903d994799
commit 0f05e72fa3

View File

@ -4719,7 +4719,8 @@ class GetChannelDifferenceQuery final : public Td::ResultHandler {
}
void on_error(Status status) final {
if (!td_->messages_manager_->on_get_dialog_error(dialog_id_, status, "GetChannelDifferenceQuery")) {
if (!td_->messages_manager_->on_get_dialog_error(dialog_id_, status, "GetChannelDifferenceQuery") &&
status.message() != "PERSISTENT_TIMESTAMP_INVALID") {
LOG(ERROR) << "Receive error for GetChannelDifferenceQuery for " << dialog_id_ << " with pts " << pts_
<< " and limit " << limit_ << ": " << status;
}