# 话题底部显示“还有1个未读”实际上没有未读话题

**URL:** <https://meta.discourse.org/t/bottom-of-topic-shows-there-is-1-unread-remaining-when-there-are-actually-0-unread-topics-remaining/220817>\
**Category:** Bug\
**Created:** [2022年三月12日 22:25 UTC](https://meta.discourse.org/t/bottom-of-topic-shows-there-is-1-unread-remaining-when-there-are-actually-0-unread-topics-remaining/220817 "2022-03-12T22:25:39Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)\
**Post date:** [2022年四月20日 01:26 UTC](https://meta.discourse.org/t/bottom-of-topic-shows-there-is-1-unread-remaining-when-there-are-actually-0-unread-topics-remaining/220817/21 "2022-04-20T01:26:33Z")

</div>

我最近合并了这个拉取请求，应该可以解决该问题，如果仍然出现类似问题，请告知我：

> <https://github.com/discourse/discourse/pull/16474>
>
> This commit fixes two issues at play. The first was introduced
> in f6c852bf8e7f4…dea519425ba87a114f22f52a8f4 (or maybe not introduced
> but rather revealed). When a user posted a new message in a topic,
> they received the \`unread\` topic tracking state MessageBus message,
> and the Unread (X) indicator was incremented by one, because with the
> aforementioned perf commit we "guess" the correct last read post
> for the user, because we no longer calculate individual users' read
> status there. This meant that every time a user posted in a topic
> they tracked, the unread indicator was incremented. To get around
> this, we can just exclude the user who created the post from the
> target users of the \`unread\` state message.
> 
> The second issue was related to the private message topic tracking
> state, and was somewhat similar. Whenever a user created a new private
> message, the New (X) indicator was incremented, and could not be
> cleared until the page was refreshed. To solve this, we just don't
> update the topic state for the user when the \`new\_topic\` tracking state
> message comes through if the user who created the topic is the
> same as the current user.
> 
> cf. https://meta.discourse.org/t/bottom-of-topic-shows-there-is-1-unread-remaining-when-there-are-actually-0-unread-topics-remaining/220817

---

_[View the full topic](https://meta.discourse.org/t/bottom-of-topic-shows-there-is-1-unread-remaining-when-there-are-actually-0-unread-topics-remaining/220817)._
