Skip to content
Snippets Groups Projects
Commit c6950b18 authored by Erik Johnston's avatar Erik Johnston
Browse files

Return the current state in the initial sync api.

parent 063e1b22
No related branches found
No related tags found
No related merge requests found
......@@ -279,6 +279,9 @@ class MessageHandler(BaseHandler):
"start": token[0],
"end": token[1],
}
current_state = yield self.store.get_current_state(event.room_id)
d["state"] = [c.get_dict() for c in current_state]
except:
logger.exception("Failed to get snapshot")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment