diff options
author | Erik Johnston <erik@matrix.org> | 2015-11-13 11:40:17 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-11-13 11:40:17 +0000 |
commit | da3dd4867dfb6414a4402089cbe3ef70fb605d23 (patch) | |
tree | a80ccd094d9dacafdbe02dc4a6705b0f3d217c2b /synapse/storage/events.py | |
parent | Update date (diff) | |
parent | Implementation of state rollback in /sync (diff) | |
download | synapse-da3dd4867dfb6414a4402089cbe3ef70fb605d23.tar.xz |
Merge branch 'develop' into release-v0.11.0
Diffstat (limited to 'synapse/storage/events.py')
-rw-r--r-- | synapse/storage/events.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py index 4a365ff639..5d35ca90b9 100644 --- a/synapse/storage/events.py +++ b/synapse/storage/events.py @@ -831,7 +831,8 @@ class EventsStore(SQLBaseStore): allow_none=True, ) if prev: - ev.unsigned["prev_content"] = prev.get_dict()["content"] + ev.unsigned["prev_content"] = prev.content + ev.unsigned["prev_sender"] = prev.sender self._get_event_cache.prefill( (ev.event_id, check_redacted, get_prev_content), ev @@ -888,7 +889,8 @@ class EventsStore(SQLBaseStore): get_prev_content=False, ) if prev: - ev.unsigned["prev_content"] = prev.get_dict()["content"] + ev.unsigned["prev_content"] = prev.content + ev.unsigned["prev_sender"] = prev.sender self._get_event_cache.prefill( (ev.event_id, check_redacted, get_prev_content), ev |