summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-08-25 18:14:02 +0100
committerMark Haines <mark.haines@matrix.org>2016-08-25 18:14:02 +0100
commit641efb6a39f0d913895cec73b1bda8dbb548c2a3 (patch)
tree3527796e1023de303290e0291e4ec593d3e14d5b /synapse/storage
parentAdd store-and-forward direct-to-device messaging (diff)
downloadsynapse-641efb6a39f0d913895cec73b1bda8dbb548c2a3.tar.xz
Fix the deduplication of incoming direct-to-device messages
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/deviceinbox.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/storage/deviceinbox.py b/synapse/storage/deviceinbox.py
index 0b71a5cd90..e682fe1bd1 100644
--- a/synapse/storage/deviceinbox.py
+++ b/synapse/storage/deviceinbox.py
@@ -132,5 +132,9 @@ class DeviceInboxStore(SQLBaseStore):
             )
             txn.execute(sql, (user_id, device_id, up_to_stream_id))
 
+        return self.runInteraction(
+            "delete_messages_for_device", delete_messages_for_device_txn
+        )
+
     def get_to_device_stream_token(self):
         return self._device_inbox_id_gen.get_current_token()