mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-27 12:08:32 +03:00
Fix typo where we thought a list was a dict
This commit is contained in:
parent
42b725ce52
commit
23da4a4051
1 changed files with 4 additions and 3 deletions
|
@ -263,9 +263,10 @@ class StateHandler(object):
|
||||||
}
|
}
|
||||||
|
|
||||||
if event_type:
|
if event_type:
|
||||||
prev_states = conflicted_state.get(
|
prev_states_events = conflicted_state.get(
|
||||||
(event_type, state_key), {}
|
(event_type, state_key), []
|
||||||
).keys()
|
)
|
||||||
|
prev_states = [s.event_id for s in prev_states_events]
|
||||||
else:
|
else:
|
||||||
prev_states = []
|
prev_states = []
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue