Description
Description
Incoming EDUs over /sync can produce notifications if they contain the room_id field
Conduit:
{
"ephemeral": {
"events": [
{
"type": "m.receipt",
"content": {
"$zLsGHlRy8UIQnfoBCqagxOVz79DDb2y56XketZhxdw8": {
"m.read": {
"@tulir:maunium.net": {
"ts": 1620812476643
}
}
}
},
"room_id": "!EgoVrPyOnPSVXERlxj:gruenhage.xyz"
}
]
}
}
Synapse:
{
"ephemeral": {
"events": [
{
"type": "m.receipt",
"content": {
"$inJlQ2wHie4DHUbNCbFRVCxInkCe5GFTqFbPwAEAbx8": {
"m.read": {
"@ace:kittenface.studio": {
"ts": 1620812386378
}
}
}
}
}
]
}
}
I assume the presence of the room_id key triggers Element to apply a push rule to the event.
You can see here in the spec that receipt events should contain a room id: https://matrix.org/docs/spec/client_server/r0.6.1#m-receipt
You can also see it in the example response to /sync: https://matrix.org/docs/spec/client_server/r0.6.1#get-matrix-client-r0-sync (but the /sync definition for Event
doesn't list the room_id field, so maybe it's a gray zone).
I think Element should not play notifications sounds for EDUs in any case
Version: Element Web staging