diff options
author | Erik Johnston <erik@matrix.org> | 2015-06-03 16:43:40 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-06-03 16:43:40 +0100 |
commit | 53f0bf85d7781960d61ea0d4e3f2435102ca7fb6 (patch) | |
tree | 4733441f755a36619cc8e8cafa57b9529a287dc7 /synapse | |
parent | Don't needlessly compute context (diff) | |
download | synapse-53f0bf85d7781960d61ea0d4e3f2435102ca7fb6.tar.xz |
Comment
Diffstat (limited to '')
-rw-r--r-- | synapse/state.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/state.py b/synapse/state.py index c1ce46d1b2..8a635f1cc1 100644 --- a/synapse/state.py +++ b/synapse/state.py @@ -124,6 +124,9 @@ class StateHandler(object): context = EventContext() if outlier: + # If this is an outlier, then we know it shouldn't have any current + # state. Certainly store.get_current_state won't return any, and + # persisting the event won't store the state group. if old_state: context.current_state = { (s.type, s.state_key): s for s in old_state |