mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-02 12:06:17 -04:00
Stop internal keys from getting into SynapseEvents
This commit is contained in:
parent
1587ea26fe
commit
063e1b22e6
2 changed files with 6 additions and 0 deletions
|
@ -294,6 +294,11 @@ class SQLBaseStore(object):
|
|||
|
||||
def _parse_event_from_row(self, row_dict):
|
||||
d = copy.deepcopy({k: v for k, v in row_dict.items() if v})
|
||||
|
||||
d.pop("stream_ordering", None)
|
||||
d.pop("topological_ordering", None)
|
||||
d.pop("processed", None)
|
||||
|
||||
d.update(json.loads(row_dict["unrecognized_keys"]))
|
||||
d["content"] = json.loads(d["content"])
|
||||
del d["unrecognized_keys"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue