Sticky unread reply notification

Today, my notification menu showed an unread reply on the icon on the right, but there is no unread reply notification in the menu.

At first, I thought maybe this happened when a user replied to me, and the user (including their post) was deleted before I read it. But when I reproduce that scenario, the notification disappears on reload. The notification here on Meta is sticky. It doesn’t disappear on reload and is still there after logging out and back in.

This feels similar to Can't clear unread notification after being removed from a PM, but so far I have no idea what caused this, and it’s pure guesswork because I have no clue what happened last night.

2 Likes

yea i think i know which pm too. a topic post in Support was moved to our team inbox around that time and the people who posted in the topic were removed.

2 Likes

@Moin do you know if you have been able to reproduce this anytime recently?

1 Like

I still have that one in my notification menu. But I haven’t tried a repro

1 Like

Did a repro on my forum (3bcc19a5d2) now.

  1. Admin creates a topic
  2. Test user with no unread notifications replies
  3. Admin replies to the post of the test user
  4. Admin converts the topic into a PM
  5. Admin removes test user from the PM

Result: Test user has a notification indicator, but no unread notification

2 Likes

Thank you for the repro, I will look into this now

1 Like

I believe the fix from the other topic also fixed this. I tried your repro on the commit immediately before mine, was still able to reproduce. I then reverted to main and tried again, and there’s no stuck notification.

I also think the migration script in that fix should clear up your old one. If it doesn’t, we might need to look into that separately.

2 Likes

In that case, I can use the Dismiss button on the notifications menu.

2 Likes

It’s gone! Thank you

1 Like

Yay! Thank you for the quick response earlier on the repro. Glad they could be solved together

1 Like