# Notification count doesn't decrease live

**URL:** https://meta.discourse.org/t/notification-count-doesnt-decrease-live/46620
**Category:** Bug
**Created:** [June 29, 2016, 3:33pm UTC](https://meta.discourse.org/t/notification-count-doesnt-decrease-live/46620 "2016-06-29T15:33:38Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [June 29, 2016, 3:33pm UTC](https://meta.discourse.org/t/notification-count-doesnt-decrease-live/46620/1 "2016-06-29T15:33:38Z")

</div>

If I recall correctly, some time ago, the blue number next to your avatar was _always_ updated live, in both directions.

Now, this isn’t working (anymore). The number counts up when a notification is pushed, but doesn’t count down automatically in many cases.

For example, if I receive a desktop notification for a reply and click it, Chrome activates and I’m navigated to the post, but the blue **1** remains. Clicking on the avatar dismisses it.  
The same happens when the notification is cleared by manually navigating to the post.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [June 29, 2016, 4:39pm UTC](https://meta.discourse.org/t/notification-count-doesnt-decrease-live/46620/2 "2016-06-29T16:39:39Z")

</div>

Is this a good repro @sam?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 29, 2016, 4:56pm UTC](https://meta.discourse.org/t/notification-count-doesnt-decrease-live/46620/3 "2016-06-29T16:56:01Z")

</div>

It’s working fine for me on meta.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [June 29, 2016, 7:11pm UTC](https://meta.discourse.org/t/notification-count-doesnt-decrease-live/46620/4 "2016-06-29T19:11:14Z")

</div>

Hm. This has been haunting me for a few weeks at least. Now suddenly after reporting it, I can no longer reproduce this; neither on try nor on my self-hosted instances…

For now, let’s just assume I’ve been hallucinating and everything is fine ☀

If I catch this again, I’ll try to find more reliable reproduction steps. 🙂

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [June 29, 2016, 7:25pm UTC](https://meta.discourse.org/t/notification-count-doesnt-decrease-live/46620/5 "2016-06-29T19:25:47Z")

</div>



---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [July 26, 2016, 2:09pm UTC](https://meta.discourse.org/t/notification-count-doesnt-decrease-live/46620/6 "2016-07-26T14:09:34Z")

</div>



---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [July 26, 2016, 2:11pm UTC](https://meta.discourse.org/t/notification-count-doesnt-decrease-live/46620/7 "2016-07-26T14:11:52Z")

</div>

This has started happening all the time on my hosted instances now, especially when opening messages from a link received via email.

I also have a repro on try now, and it is very simple:

1. Sign up on try.
2. Click your avatar.
3. Don’t open your welcome message, but right-click it and copy the URL.
4. Close the tab. Open a new one, and navigate to the pasted URL.
5. Notice the green 1️⃣ shows on your avatar.
6. Click your avatar again. The unread count disappears.

This isn’t happening every time, but I’ve definitely seen it once on Try.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [August 19, 2016, 5:48am UTC](https://meta.discourse.org/t/notification-count-doesnt-decrease-live/46620/8 "2016-08-19T05:48:36Z")

</div>

I’ve just seen this happen here on Meta, when opening a message via the link in the notification mail, in Safari on iOS.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [September 9, 2016, 8:31am UTC](https://meta.discourse.org/t/notification-count-doesnt-decrease-live/46620/9 "2016-09-09T08:31:08Z")

</div>

I’ve also noticed this happening on one of my self-hosted instances when opening a topic from the topic list for which I have an unread reply notification – the blue `1` should be removed, but isn’t until the notifications list is opened.

**Edit:** This also happened on Meta just now.

**Another Edit:** For some time now, I’ve neven seen this working, even here on Meta.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [July 21, 2022, 7:02am UTC](https://meta.discourse.org/t/notification-count-doesnt-decrease-live/46620/10 "2022-07-21T07:02:16Z")

</div>

Oh this has been completely redone to always send full counts, it never sends deltas, so this issue of only counting up should not be the case.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [July 21, 2022, 7:02am UTC](https://meta.discourse.org/t/notification-count-doesnt-decrease-live/46620/11 "2022-07-21T07:02:19Z")

</div>


