diff options
author | Erik Johnston <erik@matrix.org> | 2014-12-11 15:16:55 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-12-11 15:16:55 +0000 |
commit | 9191292b0f657f6210e88f16ffd9a182bfab8170 (patch) | |
tree | abcf0f4f26d91a2650a4f6f28a0c48cfa2a559ef /synapse/storage | |
parent | Fix redaction tests (diff) | |
download | synapse-9191292b0f657f6210e88f16ffd9a182bfab8170.tar.xz |
Fix prev_content
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/_base.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py index ffc26d4a61..e9cf73a8e2 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py @@ -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): |