summary refs log tree commit diff
path: root/synapse/events
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-05-17 15:48:04 +0100
committerErik Johnston <erik@matrix.org>2019-05-17 15:48:04 +0100
commit5dbff345094327e61fa9c1425ba0f955c9530ba7 (patch)
tree8cf587505698b71cf6a8c2f649eb6eb7c81a6135 /synapse/events
parentAdd basic editing support (diff)
downloadsynapse-5dbff345094327e61fa9c1425ba0f955c9530ba7.tar.xz
Fixup bsaed on review comments
Diffstat (limited to 'synapse/events')
-rw-r--r--synapse/events/utils.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/events/utils.py b/synapse/events/utils.py
index 2019ce9b1c..bf3c8f8dc1 100644
--- a/synapse/events/utils.py
+++ b/synapse/events/utils.py
@@ -368,9 +368,7 @@ class EventClientSerializer(object):
 
             edit = None
             if event.type == EventTypes.Message:
-                edit = yield self.store.get_applicable_edit(
-                    event.event_id, event.type, event.sender,
-                )
+                edit = yield self.store.get_applicable_edit(event_id)
 
             if edit:
                 # If there is an edit replace the content, preserving existing