summary refs log tree commit diff
path: root/synapse/events/snapshot.py
diff options
context:
space:
mode:
authorRichard van der Hoff <github@rvanderhoff.org.uk>2017-03-20 11:21:01 +0000
committerGitHub <noreply@github.com>2017-03-20 11:21:01 +0000
commit2e05f5d7a4d713be3ba950672c26e6d5e3ab031f (patch)
tree9beddc25115cb9931933727b1ea6d7205999ce72 /synapse/events/snapshot.py
parentMerge pull request #2016 from matrix-org/rav/queue_pdus_during_join (diff)
parentAvoid resetting state on rejected events (diff)
downloadsynapse-2e05f5d7a4d713be3ba950672c26e6d5e3ab031f.tar.xz
Merge pull request #2025 from matrix-org/rav/no_reset_state_on_rejections
Avoid resetting state on rejected events
Diffstat (limited to 'synapse/events/snapshot.py')
-rw-r--r--synapse/events/snapshot.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/synapse/events/snapshot.py b/synapse/events/snapshot.py

index 11605b34a3..6be18880b9 100644 --- a/synapse/events/snapshot.py +++ b/synapse/events/snapshot.py
@@ -15,6 +15,32 @@ class EventContext(object): + """ + Attributes: + current_state_ids (dict[(str, str), str]): + The current state map including the current event. + (type, state_key) -> event_id + + prev_state_ids (dict[(str, str), str]): + The current state map excluding the current event. + (type, state_key) -> event_id + + state_group (int): state group id + rejected (bool|str): A rejection reason if the event was rejected, else + False + + push_actions (list[(str, list[object])]): list of (user_id, actions) + tuples + + prev_group (int): Previously persisted state group. ``None`` for an + outlier. + delta_ids (dict[(str, str), str]): Delta from ``prev_group``. + (type, state_key) -> event_id. ``None`` for an outlier. + + prev_state_events (?): XXX: is this ever set to anything other than + the empty list? + """ + __slots__ = [ "current_state_ids", "prev_state_ids",