mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Rename 'pruned' to 'pruned_because'
This commit is contained in:
parent
bc250a6afa
commit
efea61dc50
@ -59,7 +59,7 @@ class SynapseEvent(JsonEncodedObject):
|
||||
"age_ts",
|
||||
"prev_content",
|
||||
"prev_state",
|
||||
"pruned",
|
||||
"pruned_because",
|
||||
]
|
||||
|
||||
internal_keys = [
|
||||
|
@ -206,7 +206,7 @@ class DataStore(RoomMemberStore, RoomStore,
|
||||
unrec = {
|
||||
k: v
|
||||
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)
|
||||
|
||||
|
@ -398,7 +398,7 @@ class SQLBaseStore(object):
|
||||
|
||||
if del_evs:
|
||||
prune_event(ev)
|
||||
ev.pruned = del_evs[0]
|
||||
ev.pruned_because = del_evs[0]
|
||||
|
||||
return events
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user