Skip to content
Snippets Groups Projects
Commit c8cd87b2 authored by Erik Johnston's avatar Erik Johnston
Browse files

Comment about message deletion

parent 1ee62859
No related branches found
No related tags found
No related merge requests found
...@@ -566,6 +566,9 @@ class SyncHandler(object): ...@@ -566,6 +566,9 @@ class SyncHandler(object):
since_stream_id = int(sync_result_builder.since_token.to_device_key) since_stream_id = int(sync_result_builder.since_token.to_device_key)
if since_stream_id != int(now_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) logger.debug("Deleting messages up to %d", since_stream_id)
yield self.store.delete_messages_for_device( yield self.store.delete_messages_for_device(
user_id, device_id, since_stream_id user_id, device_id, since_stream_id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment