From b8d7ca9946ca770bd960b2e2f1316210a7c51cc9 Mon Sep 17 00:00:00 2001 From: Mathieu Velten Date: Fri, 18 Sep 2020 12:35:41 +0200 Subject: Make all rooms noisy by default (#60) --- synapse/push/baserules.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'synapse') diff --git a/synapse/push/baserules.py b/synapse/push/baserules.py index 286374d0b5..204d2d83f6 100644 --- a/synapse/push/baserules.py +++ b/synapse/push/baserules.py @@ -335,7 +335,11 @@ BASE_APPEND_UNDERRIDE_RULES = [ "_id": "_message", } ], - "actions": ["notify", {"set_tweak": "highlight", "value": False}], + "actions": [ + "notify", + {"set_tweak": "sound", "value": "default"}, + {"set_tweak": "highlight", "value": False}, + ], }, # XXX: this is going to fire for events which aren't m.room.messages # but are encrypted (e.g. m.call.*)... @@ -349,7 +353,11 @@ BASE_APPEND_UNDERRIDE_RULES = [ "_id": "_encrypted", } ], - "actions": ["notify", {"set_tweak": "highlight", "value": False}], + "actions": [ + "notify", + {"set_tweak": "sound", "value": "default"}, + {"set_tweak": "highlight", "value": False}, + ], }, ] -- cgit 1.5.1