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

Commit

Permalink
Fix docstring in EventContext (#14145)
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Shay authored Oct 18, 2022
1 parent 06b0c4e commit 1c777ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelog.d/14145.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Clarify comment on event contexts.

3 changes: 2 additions & 1 deletion synapse/events/snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ class EventContext:
None does not necessarily mean that ``state_group`` does not have
a prev_group!
If the event is a state event, this is normally the same as ``prev_group``.
If the event is a state event, this is normally the same as
``state_group_before_event``.
If ``state_group`` is None (ie, the event is an outlier), ``prev_group``
will always also be ``None``.
Expand Down

0 comments on commit 1c777ef

Please sign in to comment.