From b18f54c845d533c05483ecd8f9b07300ef39e58c Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Fri, 13 Sep 2019 12:05:55 +0100 Subject: [PATCH] don't push by default for group chats. see https://github.com/vector-im/riot-web/issues/3268 This only works for new servers (e.g. mozilla-test.modular.im) --- synapse/push/baserules.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/synapse/push/baserules.py b/synapse/push/baserules.py index 286374d0b5..4d57a89d7e 100644 --- a/synapse/push/baserules.py +++ b/synapse/push/baserules.py @@ -335,7 +335,13 @@ BASE_APPEND_UNDERRIDE_RULES = [ "_id": "_message", } ], - "actions": ["notify", {"set_tweak": "highlight", "value": False}], + "actions": [ + # default to not notifying for group chats + # see https://github.com/vector-im/riot-web/issues/3268 + # we can't do this on existing servers because we need to + # add per-user overrides to preserve their existing behaviour + "dont_notify" + ], }, # XXX: this is going to fire for events which aren't m.room.messages # but are encrypted (e.g. m.call.*)...