mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-23 10:53:31 +00:00
Return the current state in the initial sync api.
This commit is contained in:
1 parent
063e1b22e6
commit
c6950b18cc
1 file changed
+3
@@ -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")
|
||||
|
||||
|
||||
Reference in new issue
Block a user