summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2017-10-27 10:27:46 +0100
committerDavid Baker <dave@matrix.org>2017-10-27 10:27:46 +0100
commit7f7b98c5d9317fbeec7c4c76fc0e5d135c5e8969 (patch)
tree9bb999f5fa5f11c65999a25a13a9b6f758d97e61
parentMerge pull request #2574 from matrix-org/erikj/room_list_fixes (diff)
downloadsynapse-dbkr/room_notifs_use_fakeurl.tar.xz
Use a special matrix.to URL for room notifs github/dbkr/room_notifs_use_fakeurl dbkr/room_notifs_use_fakeurl
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?
-rw-r--r--synapse/push/baserules.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/push/baserules.py b/synapse/push/baserules.py

index 7a18afe5f9..c629e6beaa 100644 --- a/synapse/push/baserules.py +++ b/synapse/push/baserules.py
@@ -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', }, {