summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-04-26 16:18:08 +0100
committerErik Johnston <erik@matrix.org>2017-04-26 16:18:08 +0100
commit34e682d3855562a4ca6e32f366a2ecfa1c684a3a (patch)
tree6328201b5fb85cf4986cbb10066e6e7497d82bbc /synapse/rest
parentMerge pull request #2160 from matrix-org/erikj/reduce_join_cache_size (diff)
downloadsynapse-34e682d3855562a4ca6e32f366a2ecfa1c684a3a.tar.xz
Fix invite state to always include all events
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/client/v2_alpha/sync.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/rest/client/v2_alpha/sync.py b/synapse/rest/client/v2_alpha/sync.py
index a7a9e0a794..b5bcfade70 100644
--- a/synapse/rest/client/v2_alpha/sync.py
+++ b/synapse/rest/client/v2_alpha/sync.py
@@ -250,9 +250,11 @@ class SyncRestServlet(RestServlet):
         """
         invited = {}
         for room in rooms:
+            logger.info("invite: %r", room.invite)
             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