mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 02:44:53 -04:00
Fix prev_content
This commit is contained in:
parent
e72b16f9a3
commit
9191292b0f
3 changed files with 16 additions and 3 deletions
|
@ -487,6 +487,12 @@ class SQLBaseStore(object):
|
|||
if because:
|
||||
ev.unsigned["redacted_because"] = because
|
||||
|
||||
if "replaces_state" in ev.unsigned:
|
||||
ev.unsigned["prev_content"] = self._get_event_txn(
|
||||
txn,
|
||||
ev.unsigned["replaces_state"],
|
||||
).get_dict()["content"]
|
||||
|
||||
return ev
|
||||
|
||||
def _parse_events(self, rows):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue