diff options
author | Mark Haines <mark.haines@matrix.org> | 2016-09-08 13:43:43 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2016-09-08 13:43:43 +0100 |
commit | fa9d36e050d942e76b2bd6a6d2c190215a1dac39 (patch) | |
tree | 806152a98d66013b94882c85cb1cb6129be62e78 /synapse/events/snapshot.py | |
parent | Add a new method to enqueue the device messages rather than sending a dummy EDU (diff) | |
parent | Log delta files we're applying (diff) | |
download | synapse-fa9d36e050d942e76b2bd6a6d2c190215a1dac39.tar.xz |
Merge branch 'develop' into markjh/direct_to_device_federation
Diffstat (limited to 'synapse/events/snapshot.py')
-rw-r--r-- | synapse/events/snapshot.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/synapse/events/snapshot.py b/synapse/events/snapshot.py index e895b1c450..11605b34a3 100644 --- a/synapse/events/snapshot.py +++ b/synapse/events/snapshot.py @@ -15,9 +15,30 @@ class EventContext(object): + __slots__ = [ + "current_state_ids", + "prev_state_ids", + "state_group", + "rejected", + "push_actions", + "prev_group", + "delta_ids", + "prev_state_events", + ] + def __init__(self): + # The current state including the current event self.current_state_ids = None + # The current state excluding the current event self.prev_state_ids = None self.state_group = None + self.rejected = False self.push_actions = [] + + # A previously persisted state group and a delta between that + # and this state. + self.prev_group = None + self.delta_ids = None + + self.prev_state_events = None |