diff options
author | Erik Johnston <erikj@jki.re> | 2016-08-30 10:50:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-30 10:50:37 +0100 |
commit | 55fc17cf4bdc550ece6feb5d4e5bdf10ab452010 (patch) | |
tree | 16ba7b22e28eedcb4e42043e1487c285fc89546a /synapse/handlers/events.py | |
parent | Merge pull request #1050 from matrix-org/erikj/fix_device_sync (diff) | |
parent | Add to slave store (diff) | |
download | synapse-55fc17cf4bdc550ece6feb5d4e5bdf10ab452010.tar.xz |
Merge pull request #1049 from matrix-org/erikj/presence_users_in_room
Use state handler instead of get_users_in_room/get_joined_hosts
Diffstat (limited to 'synapse/handlers/events.py')
-rw-r--r-- | synapse/handlers/events.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/handlers/events.py b/synapse/handlers/events.py index 3a3a1257d3..d3685fb12a 100644 --- a/synapse/handlers/events.py +++ b/synapse/handlers/events.py @@ -47,6 +47,7 @@ class EventStreamHandler(BaseHandler): self.clock = hs.get_clock() self.notifier = hs.get_notifier() + self.state = hs.get_state_handler() @defer.inlineCallbacks @log_function @@ -90,7 +91,7 @@ class EventStreamHandler(BaseHandler): # Send down presence. if event.state_key == auth_user_id: # Send down presence for everyone in the room. - users = yield self.store.get_users_in_room(event.room_id) + users = yield self.state.get_current_user_in_room(event.room_id) states = yield presence_handler.get_states( users, as_event=True, |