summary refs log tree commit diff
path: root/synapse/handlers/sync.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-08-30 11:23:26 +0100
committerErik Johnston <erik@matrix.org>2016-08-30 11:23:26 +0100
commitc8cd87b21bea2fc4a54353849d0b137f09654b18 (patch)
treef759caed65c61d319db507897f00f8305b7e3f16 /synapse/handlers/sync.py
parentFix check (diff)
downloadsynapse-c8cd87b21bea2fc4a54353849d0b137f09654b18.tar.xz
Comment about message deletion
Diffstat (limited to '')
-rw-r--r--synapse/handlers/sync.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index a8f8b9a75a..14f2032afa 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -566,6 +566,9 @@ class SyncHandler(object):
             since_stream_id = int(sync_result_builder.since_token.to_device_key)
 
         if since_stream_id != int(now_token.to_device_key):
+            # We only delete messages when a new message comes in, but that's
+            # fine so long as we delete them at some point.
+
             logger.debug("Deleting messages up to %d", since_stream_id)
             yield self.store.delete_messages_for_device(
                 user_id, device_id, since_stream_id