This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docstring on
is_out_of_band_membership
- Loading branch information
Showing
1 changed file
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -213,10 +213,17 @@ def is_outlier(self) -> bool: | |
return self.outlier | ||
|
||
def is_out_of_band_membership(self) -> bool: | ||
"""Whether this is an out of band membership, like an invite or an invite | ||
rejection. This is needed as those events are marked as outliers, but | ||
they still need to be processed as if they're new events (e.g. updating | ||
invite state in the database, relaying to clients, etc). | ||
"""Whether this event is an out-of-band membership. | ||
OOB memberships are a special case of outlier events: they are membership events | ||
for federated rooms that we aren't full members. Examples include invites | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
richvdh
Author
Member
|
||
received over federation, and rejections for such invites. | ||
The concept of an OOB membership is needed because these events need to be | ||
processed as if they're new regular events (e.g. updating membership state in | ||
the database, relaying to clients via /sync, etc) despite being outliers. | ||
See also https://matrix-org.github.io/synapse/develop/development/room-dag-concepts.html#out-of-band-membership-events. | ||
(Added in synapse 0.99.0, so may be unreliable for events received before that) | ||
""" | ||
|
should this be "that we aren't full members of."?