mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-21 00:34:18 -05:00
old_state_events should be a dict not list
This commit is contained in:
parent
841df4da71
commit
d84f5b30b8
@ -138,8 +138,10 @@ class StateHandler(object):
|
||||
|
||||
if old_state:
|
||||
event.state_group = None
|
||||
event.old_state_events = old_state
|
||||
event.state_events = {(s.type, s.state_key): s for s in old_state}
|
||||
event.old_state_events = {
|
||||
(s.type, s.state_key): s for s in old_state
|
||||
}
|
||||
event.state_events = event.old_state_events
|
||||
|
||||
if hasattr(event, "state_key"):
|
||||
event.state_events[(event.type, event.state_key)] = event
|
||||
|
Loading…
Reference in New Issue
Block a user