Add base pushrule to notify for jitsi conferences (#8286)

This could be customised to trigger a different kind of notification in the future, but for now it's a normal non-highlight one.
This commit is contained in:
David Baker 2020-11-02 16:36:14 +00:00 committed by GitHub
parent ca39e67f3d
commit 59cc2472b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

1
changelog.d/8286.feature Normal file
View file

@ -0,0 +1 @@
Add a push rule that highlights when a jitsi conference is created in a room.

View file

@ -498,6 +498,30 @@ BASE_APPEND_UNDERRIDE_RULES = [
],
"actions": ["notify", {"set_tweak": "highlight", "value": False}],
},
{
"rule_id": "global/underride/.im.vector.jitsi",
"conditions": [
{
"kind": "event_match",
"key": "type",
"pattern": "im.vector.modular.widgets",
"_id": "_type_modular_widgets",
},
{
"kind": "event_match",
"key": "content.type",
"pattern": "jitsi",
"_id": "_content_type_jitsi",
},
{
"kind": "event_match",
"key": "state_key",
"pattern": "*",
"_id": "_is_state_event",
},
],
"actions": ["notify", {"set_tweak": "highlight", "value": False}],
},
]