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:
David Baker 2017-10-27 10:27:46 +01:00
parent 2fd9831f7c
commit 7f7b98c5d9

View file

@ -244,8 +244,8 @@ BASE_APPEND_OVERRIDE_RULES = [
'conditions': [ 'conditions': [
{ {
'kind': 'event_match', 'kind': 'event_match',
'key': 'content.body', 'key': 'content.formatted_body',
'pattern': '@room', 'pattern': '*https://matrix.to/#@room*',
'_id': '_roomnotif_content', '_id': '_roomnotif_content',
}, },
{ {