Fix seq updating after all updates was processed.

GitOrigin-RevId: 11070e368d10d8378b5b30010a5ea1028d4e2fbe
This commit is contained in:
levlam 2020-09-22 18:16:05 +03:00
parent 4357a24a1c
commit 4aa10dbcc5

View File

@ -1335,13 +1335,8 @@ void UpdatesManager::on_pending_updates(vector<tl_object_ptr<telegram_api::Updat
return; return;
} }
if (processed_updates == updates.size()) { if (processed_updates == updates.size() && seq_begin == 0 && seq_end == 0) {
if (seq_begin || seq_end) { LOG(INFO) << "All updates was processed";
LOG(ERROR) << "All updates from " << source << " was processed but seq = " << seq_
<< ", seq_begin = " << seq_begin << ", seq_end = " << seq_end;
} else {
LOG(INFO) << "All updates was processed";
}
return; return;
} }