Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
don't push by default for group chats.
Browse files Browse the repository at this point in the history
see https://github.com/vector-im/riot-web/issues/3268

This only works for new servers (e.g. mozilla-test.modular.im)
  • Loading branch information
ara4n committed Sep 13, 2019
1 parent cbb926f commit b18f54c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion synapse/push/baserules.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,13 @@ def make_base_prepend_rules(kind, modified_base_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.*)...
Expand Down

0 comments on commit b18f54c

Please sign in to comment.