summary refs log tree commit diff
path: root/synapse/storage/state.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-07-25 16:12:16 +0100
committerMark Haines <mark.haines@matrix.org>2016-07-25 16:12:16 +0100
commit2623cec8746392067e781164e8ed4f2236b15bec (patch)
treec8e64399145114586b2044d0cba79f7ea133283e /synapse/storage/state.py
parentfix: defer.returnValue takes one argument (diff)
downloadsynapse-2623cec8746392067e781164e8ed4f2236b15bec.tar.xz
Don't add rejections to the state_group, persist all rejections
Diffstat (limited to '')
-rw-r--r--synapse/storage/state.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index 5b743db67a..cc1c7ec6a7 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -79,7 +79,7 @@ class StateStore(SQLBaseStore):
 
             state_events = dict(context.current_state)
 
-            if event.is_state():
+            if event.is_state() and not context.rejected:
                 state_events[(event.type, event.state_key)] = event
 
             state_group = context.new_state_group_id