-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Favicon notification count not reflected in highlighted rooms (stuck badge count) #3060
Favicon notification count not reflected in highlighted rooms (stuck badge count) #3060
Comments
I've had similar notification count problems. I doubt they need a new issue. For me, the stuck count is recurring. On first description I stated that the value was always [2]. It now occasionally sticks at [1] as well. The [2] case always needs to decrement twice, never 2->0. The offending rooms remain seemingly arbitrary, as do the most recent event types in those rooms. In the screenshot below: count was [1], offender was #synapse-community. The room is muted. First mention in #riot: |
Hapens on my side too. On Android it doesn't happen. My room with stuck read counter is riot-android |
Happens to me too, clicking on some rooms solves the problem after a very short delay. |
I've had a 1 badge on my favicon that I can't get rid of for a few weeks now. Clear cache doesn't fix it. Where can I look to start debugging where this is happening? It is there across all instances of Riot web/desktop but no other clients see it. No badge on Riot iOS and all rooms appear to be read in Riot and in other clients like Quaternion. |
Enter
in the browser console and then click on the room that it spits out. Note, if it is an upgraded room you may need to view the old room, that’s probably where the notification is. That let me find the room that "had the notification" even though it really didn't. Riot didn't display it with a badge next to it or even with the name written in bold. Viewing that room cleared the badge on my favicon. |
Seems like this has been happening a lot recently. I’ve helped several people who had the same problem and it seems like it was all notifications from rooms that had been upgraded. |
Happened to me recently. As far as I can tell the room wasn't upgraded (it's at version 1 now; none of the admins know much about Matrix). It's bridged (manually) to a Freenode IRC channel, not sure if that matters. |
This was using a separate function (in MatrixChat) that didn't take into account whether we were supposed to be hiding the badge for rooms so would include notifs that were hidden everywhere else. Also make it a function & put it in RoomNotifs with all its friends. Fixes element-hq/element-web#3060
This should probably be reopened. I still regularly help people with this issue. |
Here is a bit of code to clear all unread notifications: (function(mx){mx.getRooms().forEach(function(element){const count=element['_notificationCounts']['total']; if(count > 0) {mx.sendReadReceipt(function(evs) {return evs[evs.length - 1]}(element.getLiveTimeline()._events), {})}})})(mxMatrixClientPeg.get()) ... and the slightly easier to read version... (function(mx) {
mx.getRooms().forEach(function(element) {
const count = element['_notificationCounts']['total'];
if (count > 0) {
mx.sendReadReceipt(function(evs) {
return evs[evs.length - 1]
}(element.getLiveTimeline()._events), {})
}
})
})(mxMatrixClientPeg.get()) It might be nice to have a UI button somewhere to clear all notifications. I think @aaronraimist mentioned putting this near the clear cache button. I put a |
Looks like one source of this is notifications in previous versions of rooms. |
the previous room versions bug is a result of #7843, not this issue. There is UI for exposing notifications in old rooms, but due to a mix of server-side resets and Riot cache problems the "previous" room can be lost so the UI doesn't show up. |
Got this again with the new wave of +matrix:matrix.org upgrades. Was the old Synapse Announcements room !qBFNwucQebGPQldAnq:matrix.org which didn't even have any new messages... |
Experienced this with it sticking around for about 5 months. Was given the javascript workaround which cleared it up. |
The whole notification part does not werk very well for me in Riot-Web. Most of the time I can't figure out why I got the notification. Luckily I got Riot on Android, where I get a notification of the exact message. |
@aaronraimist are you still seeing instances of this issue coming up? |
@novocaine no I have not seen this in a while |
Okay! Just ping here if it starts coming up again please, closing for now |
For quite a while, I had a (1) next on my favicon. I clicked on all of my unread (bold name) rooms to see if was one of them, but it still hadn't disappeared. Then I clicked on all of my read rooms and one of them cleared the notification status on the favicon.
Sadly I didn't catch which room cleared it.
The text was updated successfully, but these errors were encountered: