Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit ca5b502

Browse files
committed
Wording updates for comments
1 parent 947f651 commit ca5b502

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

synapse/federation/sender/__init__.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,12 +363,13 @@ async def handle_event(event: EventBase) -> None:
363363
# will have a `sender` on a different server, so will be
364364
# skipped by the "is_mine" test above anyway.
365365
#
366-
# (2) rejections of invites to federated rooms. These are normally
367-
# created via federation (in which case the remote server is
368-
# responsible for sending out the rejection). If that fails,
366+
# (2) rejections of invites to federated rooms - either remotely
367+
# or locally generated. (Such rejections are normally
368+
# created via federation, in which case the remote server is
369+
# responsible for sending out the rejection. If that fails,
369370
# we'll create a leave event locally, but that's only really
370371
# for the benefit of the invited user - we don't have enough
371-
# information to send it out over federation.
372+
# information to send it out over federation).
372373
#
373374
# (2a) rescinded knocks. These are identical to rejected invites.
374375
#
@@ -382,6 +383,11 @@ async def handle_event(event: EventBase) -> None:
382383
# ignore them, we'll get an exception further down when we try to
383384
# fetch the membership list for the room.
384385
#
386+
# Arguably, we could equivalently ignore all outliers here, since
387+
# in theory the only way for an outlier with a local `sender` to
388+
# exist is by being an OOB membership (via one of (2), (2a) or (3)
389+
# above).
390+
#
385391
if event.internal_metadata.is_out_of_band_membership():
386392
return
387393

0 commit comments

Comments
 (0)