Ignore wrong still_unread_count in updateReadHistoryInbox from getDifference.

GitOrigin-RevId: 8742c705b048c92fc3af3938d599b2e525170be8
This commit is contained in:
levlam 2019-12-06 22:17:22 +03:00
parent b13096e8a9
commit 5e99992420

View File

@ -1461,6 +1461,9 @@ void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateReadHistoryInbo
CHECK(update != nullptr);
int new_pts = update->pts_;
int pts_count = update->pts_count_;
if (force_apply) {
update->still_unread_count_ = -1;
}
td_->messages_manager_->add_pending_update(std::move(update), new_pts, pts_count, force_apply,
"on_updateReadHistoryInbox");
}