mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 06:10:21 +00:00
Update synapse/storage/databases/main/deviceinbox.py
Co-authored-by: Erik Johnston <erik@matrix.org>
This commit is contained in:
parent
4cc2f3e990
commit
7af1d98df0
1 changed files with 2 additions and 0 deletions
|
@ -219,6 +219,8 @@ class DeviceInboxWorkerStore(SQLBaseStore):
|
|||
same device should pass this value as 'from_stream_id'.
|
||||
"""
|
||||
if limit == 0:
|
||||
# We return the from token so that if a sync later on asks for
|
||||
# non-zero number of to-device messages we won't have dropped any.
|
||||
return [], from_stream_id
|
||||
|
||||
(
|
||||
|
|
Loading…
Reference in a new issue