Fix bug where we were leaking None into state event lists

This commit is contained in:
Erik Johnston 2015-08-17 09:39:12 +01:00
parent 30883d8409
commit f9d4da7f45
1 changed files with 3 additions and 2 deletions

View File

@ -412,9 +412,10 @@ class StateStore(SQLBaseStore):
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
})
}
defer.returnValue(results)