summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDavid Baker <dbkr@users.noreply.github.com>2016-01-26 11:50:26 +0000
committerDavid Baker <dbkr@users.noreply.github.com>2016-01-26 11:50:26 +0000
commit27b977507381855393c913671283db1f59d875d0 (patch)
tree44d8e5194a65781aaa2a36682085eb4d84e4993d /synapse
parentMerge pull request #528 from matrix-org/markjh/missing_yield (diff)
parentOnly notify for messages in one to one rooms, not every event (diff)
downloadsynapse-27b977507381855393c913671283db1f59d875d0.tar.xz
Merge pull request #529 from matrix-org/dbkr/one_to_one_only_messages
Only notify for messages in one to one rooms, not every event
Diffstat (limited to 'synapse')
-rw-r--r--synapse/push/baserules.py6
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': [