mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Fix bug where we were leaking None into state event lists
This commit is contained in:
parent
30883d8409
commit
f9d4da7f45
@ -412,9 +412,10 @@ class StateStore(SQLBaseStore):
|
|||||||
full=(types is None),
|
full=(types is None),
|
||||||
)
|
)
|
||||||
|
|
||||||
results[group].update({
|
# We replace here to remove all the entries with None values.
|
||||||
|
results[group] = {
|
||||||
key: value for key, value in state_dict.items() if value
|
key: value for key, value in state_dict.items() if value
|
||||||
})
|
}
|
||||||
|
|
||||||
defer.returnValue(results)
|
defer.returnValue(results)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user