Merge pull request #2163 from matrix-org/erikj/fix_invite_state

Fix invite state to always include all events
This commit is contained in:
Erik Johnston 2017-04-27 17:36:30 +01:00 committed by GitHub
commit 25a96e0c63
3 changed files with 26 additions and 7 deletions

View file

@ -253,6 +253,7 @@ class SyncRestServlet(RestServlet):
invite = serialize_event(
room.invite, time_now, token_id=token_id,
event_format=format_event_for_client_v2_without_room_id,
is_invite=True,
)
unsigned = dict(invite.get("unsigned", {}))
invite["unsigned"] = unsigned