diff options
author | David Baker <dave@matrix.org> | 2016-01-26 10:21:41 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-01-26 10:21:41 +0000 |
commit | 766c24b2e6efbb5d250f5a36809caf3026140593 (patch) | |
tree | 44d8e5194a65781aaa2a36682085eb4d84e4993d /synapse | |
parent | Merge pull request #528 from matrix-org/markjh/missing_yield (diff) | |
download | synapse-766c24b2e6efbb5d250f5a36809caf3026140593.tar.xz |
Only notify for messages in one to one rooms, not every event
Fixes the fact that candidate events and hangups generated notifications.
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/push/baserules.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/push/baserules.py b/synapse/push/baserules.py index 186281dfa3..0832c77cb4 100644 --- a/synapse/push/baserules.py +++ b/synapse/push/baserules.py @@ -173,6 +173,12 @@ BASE_APPEND_UNDERRIDE_RULES = [ 'kind': 'room_member_count', 'is': '2', '_id': 'member_count', + }, + { + 'kind': 'event_match', + 'key': 'type', + 'pattern': 'm.room.message', + '_id': '_message', } ], 'actions': [ |