diff options
author | Mark Haines <mjark@negativecurvature.net> | 2016-05-11 13:42:37 +0100 |
---|---|---|
committer | Mark Haines <mjark@negativecurvature.net> | 2016-05-11 13:42:37 +0100 |
commit | 7e23476814b2cd3c8cd8ef87d2b312fbca400da6 (patch) | |
tree | dad8cba95c135c0111e035a0b4f32137b832e38f /synapse/handlers/room.py | |
parent | Merge pull request #776 from matrix-org/markjh/lazy_signing_key (diff) | |
download | synapse-7e23476814b2cd3c8cd8ef87d2b312fbca400da6.tar.xz |
move filter_events_for_client out of base handler
Diffstat (limited to 'synapse/handlers/room.py')
-rw-r--r-- | synapse/handlers/room.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index fdebc9c438..3d63b3c513 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -26,6 +26,7 @@ from synapse.api.errors import AuthError, StoreError, SynapseError from synapse.util import stringutils from synapse.util.async import concurrently_execute from synapse.util.caches.response_cache import ResponseCache +from synapse.visibility import filter_events_for_client from collections import OrderedDict @@ -449,10 +450,12 @@ class RoomContextHandler(BaseHandler): now_token = yield self.hs.get_event_sources().get_current_token() def filter_evts(events): - return self.filter_events_for_client( + return filter_events_for_client( + self.store, user.to_string(), events, - is_peeking=is_guest) + is_peeking=is_guest + ) event = yield self.store.get_event(event_id, get_prev_content=True, allow_none=True) |