summary refs log tree commit diff
path: root/synapse/events
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-02-17 13:21:58 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-02-17 13:21:58 +0000
commit4eb0bbad04e33cfa8035509e61a8dc84cfa9e2f4 (patch)
tree58759b0e0ab0feab0a85e9ffafad1c69a7e18c16 /synapse/events
parentRemove support for invite_3pid_guest. (#5625) (diff)
parentAdd origin_server_ts and sender fields to m.replace (#5613) (diff)
downloadsynapse-4eb0bbad04e33cfa8035509e61a8dc84cfa9e2f4.tar.xz
Add origin_server_ts and sender fields to m.replace (#5613)
Diffstat (limited to 'synapse/events')
-rw-r--r--synapse/events/utils.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/synapse/events/utils.py b/synapse/events/utils.py
index f24f0c16f0..987de5cab7 100644
--- a/synapse/events/utils.py
+++ b/synapse/events/utils.py
@@ -392,7 +392,11 @@ class EventClientSerializer(object):
                     serialized_event["content"].pop("m.relates_to", None)
 
                 r = serialized_event["unsigned"].setdefault("m.relations", {})
-                r[RelationTypes.REPLACE] = {"event_id": edit.event_id}
+                r[RelationTypes.REPLACE] = {
+                    "event_id": edit.event_id,
+                    "origin_server_ts": edit.origin_server_ts,
+                    "sender": edit.sender,
+                }
 
         defer.returnValue(serialized_event)