mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-22 11:14:58 -05:00
Add comment
This commit is contained in:
parent
1a3255b507
commit
b5f0d73ea3
@ -242,6 +242,10 @@ class FederationHandler(BaseHandler):
|
|||||||
if history:
|
if history:
|
||||||
visibility = history.content.get("history_visibility", "shared")
|
visibility = history.content.get("history_visibility", "shared")
|
||||||
if visibility in ["invited", "joined"]:
|
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():
|
for ev in state.values():
|
||||||
if ev.type != EventTypes.Member:
|
if ev.type != EventTypes.Member:
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user