From db24690d9b9fca5c03204dce33b94d67f28758f6 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Thu, 9 Feb 2017 13:37:47 +0000 Subject: [PATCH] Fix broken tests --- src/sync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sync.js b/src/sync.js index ef1150af9..8931ec92e 100644 --- a/src/sync.js +++ b/src/sync.js @@ -552,7 +552,7 @@ SyncApi.prototype._sync = function(syncOptions) { // If there's an accumulator then the first HTTP response is actually the // accumulated data. We don't want to accumulate the same thing twice, so // only accumulate if this isn't a cached response. - if (!isCachedResponse) { + if (self.opts.syncAccumulator && !isCachedResponse) { self.opts.syncAccumulator.accumulateRooms(data); }