diff options
author | Erik Johnston <erik@matrix.org> | 2017-01-20 15:40:04 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-01-20 17:10:18 +0000 |
commit | a55fa2047f813d639e2a0beed0c2d2738b0b639b (patch) | |
tree | 1c283f512f3a5a13edc06bfac928e523f656dff0 /synapse/handlers | |
parent | Spelling (diff) | |
download | synapse-a55fa2047f813d639e2a0beed0c2d2738b0b639b.tar.xz |
Insert delta of current_state_events to be more efficient
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/_base.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/synapse/handlers/_base.py b/synapse/handlers/_base.py index 90f96209f8..e83adc8339 100644 --- a/synapse/handlers/_base.py +++ b/synapse/handlers/_base.py @@ -88,9 +88,13 @@ class BaseHandler(object): current_state = yield self.store.get_events( context.current_state_ids.values() ) - current_state = current_state.values() else: - current_state = yield self.store.get_current_state(event.room_id) + current_state = yield self.state_handler.get_current_state( + event.room_id + ) + + current_state = current_state.values() + logger.info("maybe_kick_guest_users %r", current_state) yield self.kick_guest_users(current_state) |