mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 21:34:51 -04:00
Put room state in room initialSync output - I guess this is right; I really can't find any other tests similar...
This commit is contained in:
parent
269f80bf8e
commit
1fd8139138
2 changed files with 40 additions and 2 deletions
|
@ -336,10 +336,13 @@ class MessageHandler(BaseHandler):
|
|||
feedback=False):
|
||||
yield self.auth.check_joined_room(room_id, user_id)
|
||||
|
||||
state_tuples = yield self.store.get_current_state(room_id)
|
||||
state = [self.hs.serialize_event(x) for x in state_tuples]
|
||||
|
||||
defer.returnValue({
|
||||
#"membership": membership,
|
||||
"room_id": room_id,
|
||||
#"messages": messages,
|
||||
#"state": state,
|
||||
#"presence": presence,
|
||||
"state": state,
|
||||
#"presence": presence
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue