# Chatberichten zijn plotseling van "gelezen" naar "ong gelezen" gegaan

**URL:** https://meta.discourse.org/t/chat-messages-went-from-being-read-to-unread-suddenly/271920
**Category:** Bug
**Tags:** chat
**Created:** [18 juli 2023 om 01:17 UTC](https://meta.discourse.org/t/chat-messages-went-from-being-read-to-unread-suddenly/271920 "2023-07-18T01:17:01Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![hello-smile6](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hello-smile6/32/304628_2.png) [@hello-smile6](https://meta.discourse.org/u/hello-smile6)
#### Post date: [18 juli 2023 om 01:17 UTC](https://meta.discourse.org/t/chat-messages-went-from-being-read-to-unread-suddenly/271920/1 "2023-07-18T01:17:01Z")

</div>

For some reason, I suddenly ended up with 53 stale unread chat notifications on a forum I am on (all of them were from messages I had already seen). The forum that this happened on is hosted by CDCK, in case that matters. Not only did stale chat notifications appear, but it seems like threads were somehow re-enabled (without staff interaction) in channels that they had been recently disabled in. The forum that happened on is in CDCK’s Seattle datacenter.

---

<div class="post-metadata">

### Author: ![hello-smile6](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hello-smile6/32/304628_2.png) [@hello-smile6](https://meta.discourse.org/u/hello-smile6)
#### Post date: [18 juli 2023 om 01:19 UTC](https://meta.discourse.org/t/chat-messages-went-from-being-read-to-unread-suddenly/271920/2 "2023-07-18T01:19:39Z")

</div>

Update: The notifications went away, but returned (there were 54 the second time).

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [18 juli 2023 om 01:19 UTC](https://meta.discourse.org/t/chat-messages-went-from-being-read-to-unread-suddenly/271920/3 "2023-07-18T01:19:42Z")

</div>

Additionally, some threads were recreated with only one message in them, as their first message had already been transferred to another channel.

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [21 juli 2023 om 08:58 UTC](https://meta.discourse.org/t/chat-messages-went-from-being-read-to-unread-suddenly/271920/4 "2023-07-21T08:58:36Z")

</div>

I guess it’s related: a personal chat I replied to still shows two unread messages.

Indeed, the problem is recent, since another chat earlier last Tuesday did not show the problem.

---

<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: [24 juli 2023 om 00:02 UTC](https://meta.discourse.org/t/chat-messages-went-from-being-read-to-unread-suddenly/271920/7 "2023-07-24T00:02:27Z")

</div>

Thanks for reporting these issues! It sounds like there are a few different issues here, we just need some clarifications before we investigate please.

> [@hello-smile6](#):
>
> For some reason, I suddenly ended up with 53 stale unread chat notifications on a forum I am on (all of them were from messages I had already seen)

> [@Firepup650](#):
>
> Additionally, some threads were recreated with only one message in them, as their first message had already been transferred to another channel.

Are you both on the same forum? If so it could be potentially related to the message move issue below, which we are discussing internally:

> [@Threads do not move when original message was moved](https://meta.discourse.org/t/threads-do-not-move-when-original-message-was-moved/271923):
>
> When moving all messages from a channel with threads enabled to a private channel with threads enabled (for security reasons), the threads from the original channel did not get moved with their original message, and got left behind.

Also when you say notifications, do you mean the blue dot unread indicators for the channels? Where did you see the count of 54?

> [@hello-smile6](#):
>
> Not only did stale chat notifications appear, but it seems like threads were somehow re-enabled (without staff interaction) in channels that they had been recently disabled in

I am not really sure how this would have happened; the only place where threading can be enabled/disabled is this screen. Did any of your admins change any other settings there? Perhaps there is some bug where we are changing `threading_enabled` when other settings are changed:

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/5/2/052cd277a8d7e3f1b1de6ad7fb184eb3509390a6.png)

---

<div class="post-metadata">

### Author: ![hello-smile6](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hello-smile6/32/304628_2.png) [@hello-smile6](https://meta.discourse.org/u/hello-smile6)
#### Post date: [24 juli 2023 om 00:06 UTC](https://meta.discourse.org/t/chat-messages-went-from-being-read-to-unread-suddenly/271920/9 "2023-07-24T00:06:43Z")

</div>

I think it’s a combination of stale data being cached by a service worker and per-IP ratelimits on forums hosted by CDCK. (Basically, I think stale responses are used for checking unread chat message counts when the server responds with 429)

---

<div class="post-metadata">

### Author: ![hello-smile6](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hello-smile6/32/304628_2.png) [@hello-smile6](https://meta.discourse.org/u/hello-smile6)
#### Post date: [24 juli 2023 om 00:08 UTC](https://meta.discourse.org/t/chat-messages-went-from-being-read-to-unread-suddenly/271920/10 "2023-07-24T00:08:17Z")

</div>

> [@martin](#):
>
> Also when you say notifications, do you mean the blue dot unread indicators for the channels?

I mean the green one that shows in the header for personal chat messages / chat mentions.

---

<div class="post-metadata">

### Author: ![hello-smile6](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hello-smile6/32/304628_2.png) [@hello-smile6](https://meta.discourse.org/u/hello-smile6)
#### Post date: [24 juli 2023 om 00:13 UTC](https://meta.discourse.org/t/chat-messages-went-from-being-read-to-unread-suddenly/271920/11 "2023-07-24T00:13:26Z")

</div>

> [@martin](#):
>
> Are you both on the same forum?

Yes (we are both admins there).

---

<div class="post-metadata">

### Author: ![sok777](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@sok777](https://meta.discourse.org/u/sok777)
#### Post date: [7 augustus 2023 om 10:13 UTC](https://meta.discourse.org/t/chat-messages-went-from-being-read-to-unread-suddenly/271920/12 "2023-08-07T10:13:40Z")

</div>

This happens to me as well. It seems like a caching issue. Normally it happens if I’m opening the chat by going ‘back’ from a different web address.

Seems to be occurring just on mobile?
