diff --git a/td/telegram/UpdatesManager.cpp b/td/telegram/UpdatesManager.cpp index 8b5355cee..7b3e63b40 100644 --- a/td/telegram/UpdatesManager.cpp +++ b/td/telegram/UpdatesManager.cpp @@ -1461,6 +1461,9 @@ void UpdatesManager::on_update(tl_object_ptrpts_; 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"); }