server: Only limit the sync if we don't have a next batch.
This commit is contained in:
parent
01b8c44814
commit
996270df0d
1 changed files with 2 additions and 2 deletions
|
@ -409,8 +409,8 @@ class MatrixServer:
|
|||
return True
|
||||
|
||||
def sync(self):
|
||||
message = MatrixSyncMessage(self.client, self.next_batch,
|
||||
OPTIONS.sync_limit)
|
||||
limit = None if self.next_batch else OPTIONS.sync_limit
|
||||
message = MatrixSyncMessage(self.client, self.next_batch, limit)
|
||||
self.send_queue.append(message)
|
||||
|
||||
def login(self):
|
||||
|
|
Loading…
Reference in a new issue