summary refs log tree commit diff
path: root/synapse/push/__init__.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-01-26 17:27:28 +0000
committerDavid Baker <dave@matrix.org>2015-01-26 17:27:28 +0000
commitb481889117ceb8b31dd2e491bca53b914d306312 (patch)
tree9f5534d73e6421f73a6447b97e50cb4d9bf64a50 /synapse/push/__init__.py
parentAdd brackets to make get room name / alias work (diff)
downloadsynapse-b481889117ceb8b31dd2e491bca53b914d306312.tar.xz
Support membership events and more camelcase/underscores
Diffstat (limited to 'synapse/push/__init__.py')
-rw-r--r--synapse/push/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/push/__init__.py b/synapse/push/__init__.py
index 0c51d2dd8f..b6d01a82a0 100644
--- a/synapse/push/__init__.py
+++ b/synapse/push/__init__.py
@@ -65,6 +65,10 @@ class Pusher(object):
             # let's assume you probably know about messages you sent yourself
             defer.returnValue(['dont_notify'])
 
+        if ev['type'] == 'm.room.member':
+            if ev['state_key'] != self.user_name:
+                defer.returnValue(['dont_notify'])
+
         rules = yield self.store.get_push_rules_for_user_name(self.user_name)
 
         for r in rules: