Add comment

This commit is contained in:
Erik Johnston 2015-07-09 17:09:26 +01:00
parent 1a3255b507
commit b5f0d73ea3

View file

@ -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