mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-19 16:44:12 -04:00
Return the current state in the initial sync api.
This commit is contained in:
parent
063e1b22e6
commit
c6950b18cc
1 changed files with 3 additions and 0 deletions
|
@ -279,6 +279,9 @@ class MessageHandler(BaseHandler):
|
||||||
"start": token[0],
|
"start": token[0],
|
||||||
"end": token[1],
|
"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:
|
except:
|
||||||
logger.exception("Failed to get snapshot")
|
logger.exception("Failed to get snapshot")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue