Fix bug where we /always/ created a new state group

This commit is contained in:
Erik Johnston 2014-11-11 14:16:41 +00:00
parent ed8b7d400c
commit 5ff0bfb81d
3 changed files with 41 additions and 30 deletions

View file

@ -448,8 +448,9 @@ class FederationHandler(BaseHandler):
)
if state_groups:
_, state = state_groups.items().pop()
results = {
(e.type, e.state_key): e for e in state_groups[0].state
(e.type, e.state_key): e for e in state
}
event = yield self.store.get_event(event_id)