Description: On Windows and on Android, I’m seeing an unread personal message notification, but when I click on it, it says the page doesn’t exist or is private.
There seems to be no way for me to clear the notification since I can’t read the message.
Reproducible steps: I haven’t tried to reproduce it, but what happened was I was removed as a recipient while the message was unread, so I no longer have permission to view the message.
Does the number disappear when you reload the site?
That’s what I did to get rid of the notification for a like when someone has liked one of my posts and deleted it immediately afterwards.
This still happens, and it is still difficult to get rid of the notification. In particular, you cannot dismiss the single notification, so you first have to check all the other notifications caused by messages.
To some extent, this is even a security vulnerability, as the user should no longer have access to the title of the message.
I still find it concerning that users I remove from a PM can still see title changes. This affects my ability to rename a topic that I convert into a personal message. There is a reason why I remove the user, and I don’t want them to have access to the new title.
I have been working on fixing the root cause of several related inconsistencies regarding notification counts so my above PR has been superseded by this one
This got delayed quite a bit by lots of changes in the affected area around the same time this was being worked on. Those PRs got too stale to revive — and I also noticed that it was my own doing that delayed these because I was the one making all of the changes in that area. So, I took this one on and have just merged a fix.
I believe this is correct, and am also unsure it was still broken currently. Either way, it should definitely might be fixed after this merge.