-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/notifications
returning stale outdated results
#15140
Comments
Disabling notifications means they are literally not calculated (not that they just aren't pushed). This sounds like it is working as expected? Only notifications from the "live" timeline are appearing? Disabling notifications also means that no notifications in the "live" room will have been calculated during that time period. |
Push notifications should be re-enabled on
This doesn't seem applicable to the situation. The person in question is missing notifications from me today in a public, unencrypted room. Whereas with my account, I see mentions from testing today. |
I must have misunderstood the original report then, if they're re-enabled it shouldn't applicable. Note that endpoint only returns highlight notifications. I can debug more tomorrow and check the database. |
Do you have example room IDs & event IDs that you expected to be highlight notifications? (Would also be interesting to confirm whether those did appear as red notifications in Element!) Looking in the database for |
@clokep The room is
|
I can't be certain things haven't changed since your test, but the [
"notify",
{
"set_tweak": "highlight",
"value": false
}
] With this configuration they will get notified, but not highlighted (i.e gray counts, not red counts). My guess is that the first two options under Notifications > Mentions & keywords are set to "On" instead of "Noisy": Looking at the notifications in the database I do see one event in that room which is a notification for this user (event ID I think this is just do to configuration, so I'm going to close this, but please shout if it seems there's something else going on. |
Oh man, Element notification settings are crazy obtuse (or vice versa against Matrix push rules). I would expect @clokep Thanks for looking into this and confirming the actual user settings from the database source of truth! I hope some aspect of this is being addressed in the GetYourUpdates push to remove this confusion. As an aside, maybe that's the key ingredient to get keyword mentions showing up in the notification panel, element-hq/element-meta#1212. I just need to set my |
Yeah, it is quite confusing. 😢
That sounds quite likely actually! 👍 |
Description
As reported in element-hq/element-web#24616 (see "2. When the notification panels shows some old outdated notifications"),
/notifications
appears to be returning stale, outdated results.When opening the notification panel in Element, it makes a request to
https://gitter.ems.host/_matrix/client/r0/notifications?limit=20&only=highlight
which returns some results (only 7) and these are from September 2021. And it also makes another paginated request,https://gitter.ems.host/_matrix/client/r0/notifications?limit=20&only=highlight&from=6554474
using thenext_token
from the previous request for the?from
in this request.1:
https://gitter.ems.host/_matrix/client/r0/notifications?limit=20&only=highlight
Response
2:
https://gitter.ems.host/_matrix/client/r0/notifications?limit=20&only=highlight&from=6554474
Response
One aspect that could be playing a role is we had
push.enable_push
disabled for a little while during the Gitter import and then re-enabled it before everyone onboarded to the platform. Is this some stream position stuck problem for some users?/notifications
appears to work for me but we have reports from a couple of users that this isn't working (and as evidenced by their request/response above).I've sent
@elliria-5e77940ad73408ce4fdd9fb6:gitter.im
direct mentions in a public, unencrypted room to doubly make sure this isn't some misunderstanding in how/notifications
works (because it doesn't include encrypted events for example).Affected users:
@elliria-5e77940ad73408ce4fdd9fb6:gitter.im
@josephj11-5a3f34bfd73408ce4f84a5df:gitter.im
Steps to reproduce
/notifications?limit=20&only=highlight
to get the latest events that mention youHomeserver
gitter.im
Synapse Version
1.77.0
Installation Method
Docker (matrixdotorg/synapse)
Database
PostgreSQL
Workers
Multiple workers
Platform
EMS
Configuration
No response
Relevant log output
Do we actually log anything useful? The request log doesn't seem that helpful.
If you want to dive in, see the logs in Kibana from EMS
Anything else that would be useful to know?
No response
The text was updated successfully, but these errors were encountered: