summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-07-09 17:09:26 +0100
committerErik Johnston <erik@matrix.org>2015-07-09 17:09:26 +0100
commitb5f0d73ea3f6611c0980a03a0dfe57058071013e (patch)
tree5243d9ec96f6e7f4dce4649fccd3d7b8ae8e808e /synapse
parentAdd m.room.history_visibility to newly created rooms' m.room.power_levels (diff)
downloadsynapse-b5f0d73ea3f6611c0980a03a0dfe57058071013e.tar.xz
Add comment
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/federation.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index cd3867ed9c..d7f197f247 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -242,6 +242,10 @@ class FederationHandler(BaseHandler):
             if history:
                 visibility = history.content.get("history_visibility", "shared")
                 if visibility in ["invited", "joined"]:
+                    # We now loop through all state events looking for
+                    # membership states for the requesting server to determine
+                    # if the server is either in the room or has been invited
+                    # into the room.
                     for ev in state.values():
                         if ev.type != EventTypes.Member:
                             continue