diff options
author | Erik Johnston <erik@matrix.org> | 2016-01-21 16:10:37 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-01-21 16:10:37 +0000 |
commit | 0e07f2e15de196076d75784f44624861b971f8e7 (patch) | |
tree | 1adb7c723ec3799317f099b5d7c28ffd35192e3d /synapse/handlers | |
parent | Merge pull request #516 from matrix-org/erikj/push_perf (diff) | |
download | synapse-0e07f2e15de196076d75784f44624861b971f8e7.tar.xz |
Only fetch events for rooms and receipts
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/events.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/handlers/events.py b/synapse/handlers/events.py index aca4b6754e..254b483da6 100644 --- a/synapse/handlers/events.py +++ b/synapse/handlers/events.py @@ -113,10 +113,10 @@ class EventStreamHandler(BaseHandler): @log_function def get_stream(self, auth_user_id, pagin_config, timeout=0, as_client_event=True, affect_presence=True, - only_room_events=False, room_id=None, is_guest=False): + only_keys=None, room_id=None, is_guest=False): """Fetches the events stream for a given user. - If `only_room_events` is `True` only room events will be returned. + If `only_keys` is not None, events from keys will be sent down. """ auth_user = UserID.from_string(auth_user_id) @@ -134,7 +134,7 @@ class EventStreamHandler(BaseHandler): events, tokens = yield self.notifier.get_events_for( auth_user, pagin_config, timeout, - only_room_events=only_room_events, + only_keys=only_keys, is_guest=is_guest, explicit_room_id=room_id ) |