summary refs log tree commit diff
path: root/synapse/push/__init__.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-03-06 11:50:51 +0000
committerDavid Baker <dave@matrix.org>2015-03-06 11:50:51 +0000
commitc06b45129c218b87867595351e6500d17bc0bd92 (patch)
tree5f1e21e5ac0808a81550487ea7812d9ab5d43f11 /synapse/push/__init__.py
parentComment typo (diff)
downloadsynapse-c06b45129c218b87867595351e6500d17bc0bd92.tar.xz
Add more server default rules so we have default rules for whether you get notifs for invites / random member events
Diffstat (limited to 'synapse/push/__init__.py')
-rw-r--r--synapse/push/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/push/__init__.py b/synapse/push/__init__.py
index 086010427f..3da0ce8703 100644
--- a/synapse/push/__init__.py
+++ b/synapse/push/__init__.py
@@ -72,10 +72,6 @@ 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'])
-
         rawrules = yield self.store.get_push_rules_for_user(self.user_name)
 
         for r in rawrules:
@@ -121,6 +117,10 @@ class Pusher(object):
                     ev, c, display_name=my_display_name,
                     room_member_count=room_member_count
                 )
+            logger.debug(
+                "Rule %s %s",
+                r['rule_id'], "matches" if matches else "doesn't match"
+            )
             # ignore rules with no actions (we have an explict 'dont_notify')
             if len(actions) == 0:
                 logger.warn(