summary refs log tree commit diff
path: root/synapse/push/mailer.py
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2016-05-11 13:42:37 +0100
committerMark Haines <mjark@negativecurvature.net>2016-05-11 13:42:37 +0100
commit7e23476814b2cd3c8cd8ef87d2b312fbca400da6 (patch)
treedad8cba95c135c0111e035a0b4f32137b832e38f /synapse/push/mailer.py
parentMerge pull request #776 from matrix-org/markjh/lazy_signing_key (diff)
downloadsynapse-7e23476814b2cd3c8cd8ef87d2b312fbca400da6.tar.xz
move filter_events_for_client out of base handler
Diffstat (limited to 'synapse/push/mailer.py')
-rw-r--r--synapse/push/mailer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/push/mailer.py b/synapse/push/mailer.py
index 7031fa6d55..5d60c1efcf 100644
--- a/synapse/push/mailer.py
+++ b/synapse/push/mailer.py
@@ -28,6 +28,7 @@ from synapse.util.presentable_names import (
 from synapse.types import UserID
 from synapse.api.errors import StoreError
 from synapse.api.constants import EventTypes
+from synapse.visibility import filter_events_for_client
 
 import jinja2
 import bleach
@@ -227,9 +228,8 @@ class Mailer(object):
             "messages": [],
         }
 
-        handler = self.hs.get_handlers().message_handler
-        the_events = yield handler.filter_events_for_client(
-            user_id, results["events_before"]
+        the_events = yield filter_events_for_client(
+            self.store, user_id, results["events_before"]
         )
         the_events.append(notif_event)