diff options
author | Erik Johnston <erik@matrix.org> | 2014-08-21 15:06:22 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-08-21 15:06:22 +0100 |
commit | c6950b18cca665f6afe8ac00fcfa2322d8b35544 (patch) | |
tree | 22692afbdc4cffd4072a70d27e146ff35236606e | |
parent | Stop internal keys from getting into SynapseEvents (diff) | |
download | synapse-c6950b18cca665f6afe8ac00fcfa2322d8b35544.tar.xz |
Return the current state in the initial sync api.
-rw-r--r-- | synapse/handlers/room.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 6229ee9bfa..91415afbba 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -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") |