Closed Elliria closed 1 year ago
Created a upstream Synapse issue for the second issue described. It appears like /notifications
isn't returning the most up to date results for some reason -> https://github.com/matrix-org/synapse/issues/15140
Given 1. is tracked in https://github.com/vector-im/element-web/issues/24614 and 2. in https://github.com/matrix-org/synapse/issues/15140 this issue is redundant
@Elliria Based on our findings in https://github.com/matrix-org/synapse/issues/15140, I think we've figured out why you're not seeing new mentions show up.
The notification panel only shows highlight
notifications.
Confusingly, the On
setting in Element will set your push rules as {set_tweak: "highlight", "value": false}
and those things won't show up in the notification panel.
In order to make this work, in the notification settings, you must set Messages containing my username
and Messages containing my display name
as Noisy
which will add {set_tweak: "highlight"}
to the push rules.
https://github.com/vector-im/element-web/issues/24614 still tracks the separate issue of the notification panel being blank and staying blank.
Mine were set to "On" and I've changed them to "Noisy". I'll know as soon as something new comes in whether this fixed it or not. Thank you in advance for what seems like the solution.
@MadLittleMods that too is a synapse bug, the spec for /notifications says nothing about highlight, so synapse is returning a subset of the expected results
@t3chguy Mind creating a Synapse issue for this? I feel like I am only scratching the surface when it comes to the push rule mess.
I'll try if I remember on Monday
@t3chguy Mind creating a Synapse issue for this? I feel like I am only scratching the surface when it comes to the push rule mess.
According to the synapse ticket the requested URL is: https://gitter.ems.host/_matrix/client/r0/notifications?limit=20&only=highlight
so Element Web seems to be requesting only highlights?
I received a new mention today, so that part seems to be fixed. I didn't receive a mention for the autokey/autokey room that has this setting and had one new message in it today:
I'm still not receiving notifications for the autokey/autokey room, even when my name is mentioned.
I'm still not receiving notifications for the autokey/autokey room, even when my name is mentioned.
You have a custom push rule for that room:
global/room/!dqBkUNHOHmuFWvsiHH:gitter.im
["notify",{"set_tweak":"sound","value":"default"}]
I'm not really sure what this push rule is though (or where it could have come from). I suppose it could be setting it to "All messages". Does going back to "Use default" work?
I don't know, either. I'm able to go back to "Use default", but nothing changes (although I suppose there would need to be a new message in the autokey/autokey channel to trigger a new notification.
Here are the current room settings for that channel after changing back to "Use default":
Steps to reproduce
I'm encountering multiple issues with the notification panel which is making it impossible to see the latest mentions. This is in a public unencrypted room so the messages should be displayed in the notification panel. I've also been testing with @MadLittleMods.
1. When the notification panel shows the empty state
Edit: This issue is tracked separately by https://github.com/vector-im/element-web/issues/24614
/notifications
are requested)2. When the notification panels shows some old outdated notifications
Edit: This issue has an upstream Synapse issue tracking the
/notifications
returning outdated results -> https://github.com/matrix-org/synapse/issues/15140/notifications
requests are sent off (request details below screenshot) but the responses do not include the latest mentions (as pictured in theelliria-test-mentions
room)1:
https://gitter.ems.host/_matrix/client/r0/notifications?limit=20&only=highlight
Response
```json { "notifications": [ { "room_id": "!dqBkUNHOHmuFWvsiHH:gitter.im", "profile_tag": null, "actions": [ "notify", { "set_tweak": "sound", "value": "default" }, { "set_tweak": "highlight" } ], "ts": 1631394783651, "event": { "content": { "body": "> <@elliria-5e77940ad73408ce4fdd9fb6:gitter.im> I messed around with it extensively today to get all the details for a bug report and found that it can't be consistently repeated, but only happens some of the time. Should I still file it if it's inconsistent?\n\nYup", "format": "org.matrix.custom.html", "formatted_body": "(this is general advice more that for Autokey since our testing is a bit spotty)", "m.relates_to": { "m.in_reply_to": { "event_id": "$jZs3fG_Blnp7QxdCJ_QxhSYpjEUUTzVXE3mc5lsbB5Q" } }, "msgtype": "m.text" }, "origin_server_ts": 1624489517264, "sender": "@silico_biomancer:kde.org", "type": "m.room.message", "unsigned": { "age": 52613119796 }, "event_id": "$yleRn95D6kE7gltkxObRzg2XPVi3aP2Hl8NN3Me9Ymo" }, "read": true }, { "room_id": "!dqBkUNHOHmuFWvsiHH:gitter.im", "profile_tag": null, "actions": [ "notify", { "set_tweak": "sound", "value": "default" }, { "set_tweak": "highlight" } ], "ts": 1624414848819, "event": { "content": { "body": "> <@elliria-5e77940ad73408ce4fdd9fb6:gitter.im> Yep, it looks like that's where it is and... oof... that code is out of my league. I was hoping to see something simple and obvious that was wrong, but there are way too many references in there to things that could be the cause that I got all tangled up trying to follow them. Gotta stick with more basic code for now. All I can say is good luck. We're all counting on you.\n\nI also thought it would be simple, just adding/fixing a callback. But no, I think the issue is that callback for left click doesn't exist separate to right, or if it does it is documented poorly", "format": "org.matrix.custom.html", "formatted_body": "
2:
https://gitter.ems.host/_matrix/client/r0/notifications?limit=20&only=highlight&from=6554474
Response
```json { "notifications": [], "next_token": null } ```Other details
Affected users:
@elliria-5e77940ad73408ce4fdd9fb6:gitter.im
(me)@josephj11-5a3f34bfd73408ce4f84a5df:gitter.im
My notification settings:
The
/notifications
request information was as requested in the other issue:Outcome
What did you expect?
To be able to see my latest mentions/notifications
What happened instead?
I just see these old/stale notifications
Operating system
Kubuntu 22.04 LTS
Browser information
Firefox 110.0 (64-bit)
URL for webapp
https://app.gitter.im/#/room/#elliria-test-mentions:matrix.org
Application version
Gitter version: 1.11.23 Olm version: 3.2.12
Homeserver
gitter.im
Will you send logs?
Yes