diff options
author | Erik Johnston <erik@matrix.org> | 2016-01-21 16:12:39 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-01-21 16:12:39 +0000 |
commit | 297eded2610087dad2c4a18d98fbbab4d9af455e (patch) | |
tree | 1adb7c723ec3799317f099b5d7c28ffd35192e3d /synapse/handlers | |
parent | Merge pull request #516 from matrix-org/erikj/push_perf (diff) | |
parent | Only fetch events for rooms and receipts (diff) | |
download | synapse-297eded2610087dad2c4a18d98fbbab4d9af455e.tar.xz |
Merge pull request #517 from matrix-org/erikj/push_only_room
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 ) |