From 996270df0d0b6201747ca36a95d08f436aa8414a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?poljar=20=28Damir=20Jeli=C4=87=29?= Date: Tue, 6 Mar 2018 13:53:34 +0100 Subject: [PATCH] server: Only limit the sync if we don't have a next batch. --- matrix/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix/server.py b/matrix/server.py index 98894bf..ea78287 100644 --- a/matrix/server.py +++ b/matrix/server.py @@ -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):