1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-09 10:22:46 +03:00

Fix broken tests

This commit is contained in:
Kegan Dougal
2017-02-09 13:37:47 +00:00
parent 3a39fd23c4
commit db24690d9b

View File

@@ -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);
}