mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-14 11:57:44 +00:00
Use a special matrix.to URL for room notifs
So you'll have to explicitly accept the pill completion to actually do a room notification. Note that this matches on formatted_body as the URL will only be in the formatted_body. It could also match for only HTML bodies, but the URL ought to be specific enough that it's sensible to match whatever the format is?
This commit is contained in:
parent
2fd9831f7c
commit
7f7b98c5d9
1 changed files with 2 additions and 2 deletions
|
@ -244,8 +244,8 @@ BASE_APPEND_OVERRIDE_RULES = [
|
|||
'conditions': [
|
||||
{
|
||||
'kind': 'event_match',
|
||||
'key': 'content.body',
|
||||
'pattern': '@room',
|
||||
'key': 'content.formatted_body',
|
||||
'pattern': '*https://matrix.to/#@room*',
|
||||
'_id': '_roomnotif_content',
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue