mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 01:59:21 -05:00
Rename 'pruned' to 'pruned_because'
This commit is contained in:
parent
bc250a6afa
commit
efea61dc50
@ -59,7 +59,7 @@ class SynapseEvent(JsonEncodedObject):
|
|||||||
"age_ts",
|
"age_ts",
|
||||||
"prev_content",
|
"prev_content",
|
||||||
"prev_state",
|
"prev_state",
|
||||||
"pruned",
|
"pruned_because",
|
||||||
]
|
]
|
||||||
|
|
||||||
internal_keys = [
|
internal_keys = [
|
||||||
|
@ -206,7 +206,7 @@ class DataStore(RoomMemberStore, RoomStore,
|
|||||||
unrec = {
|
unrec = {
|
||||||
k: v
|
k: v
|
||||||
for k, v in event.get_full_dict().items()
|
for k, v in event.get_full_dict().items()
|
||||||
if k not in vals.keys() and k not in ["deleted", "pruned"]
|
if k not in vals.keys() and k not in ["deleted", "pruned_because"]
|
||||||
}
|
}
|
||||||
vals["unrecognized_keys"] = json.dumps(unrec)
|
vals["unrecognized_keys"] = json.dumps(unrec)
|
||||||
|
|
||||||
|
@ -398,7 +398,7 @@ class SQLBaseStore(object):
|
|||||||
|
|
||||||
if del_evs:
|
if del_evs:
|
||||||
prune_event(ev)
|
prune_event(ev)
|
||||||
ev.pruned = del_evs[0]
|
ev.pruned_because = del_evs[0]
|
||||||
|
|
||||||
return events
|
return events
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user