Fix docstring in EventContext (#14145)

1.103.0-whithout-watcha
Shay 2 years ago committed by GitHub
parent 06b0c4edfe
commit 1c777ef1e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      changelog.d/14145.doc
  2. 3
      synapse/events/snapshot.py

@ -0,0 +1,2 @@
Clarify comment on event contexts.

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

Loading…
Cancel
Save