server: Only limit the sync if we don't have a next batch.

This commit is contained in:
poljar (Damir Jelić) 2018-03-06 13:53:34 +01:00
parent 01b8c44814
commit 996270df0d

View file

@ -409,8 +409,8 @@ class MatrixServer:
return True return True
def sync(self): def sync(self):
message = MatrixSyncMessage(self.client, self.next_batch, limit = None if self.next_batch else OPTIONS.sync_limit
OPTIONS.sync_limit) message = MatrixSyncMessage(self.client, self.next_batch, limit)
self.send_queue.append(message) self.send_queue.append(message)
def login(self): def login(self):