From 509b18b623f40f1a6c760e7827c4e2391b93dc67 Mon Sep 17 00:00:00 2001
From: Bruno Windels <brunow@matrix.org>
Date: Thu, 20 Sep 2018 19:06:02 +0200
Subject: [PATCH] track whether or not it's an initial sync
---
src/sync.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/sync.js b/src/sync.js
index 5ffd88350..b03440c3a 100644
--- a/src/sync.js
+++ b/src/sync.js
@@ -506,6 +506,7 @@ SyncApi.prototype.sync = function() {
// Send this first sync request here so we can then wait for the saved
// sync data to finish processing before we process the results of this one.
console.log("Sending first sync request...");
+ self._stats.initialSync = true;
self._currentSyncRequest = self._doSyncRequest({ filterId }, savedSyncToken);
}
--
GitLab