From 1174147d64fdee8dadcc32d434cbd3340513a258 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Fri, 18 Dec 2015 15:29:28 +0000 Subject: [PATCH] Don't lie in comments; remove spurious flag setting --- lib/sync.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/sync.js b/lib/sync.js index 5a09180e8..4d1cd71e9 100644 --- a/lib/sync.js +++ b/lib/sync.js @@ -84,7 +84,7 @@ SyncApi.prototype.syncLeftRooms = function() { var client = this.client; var self = this; - // grab a filter with limit=0 and include_leave=true + // grab a filter with limit=1 and include_leave=true var filter = new Filter(this.client.credentials.userId); filter.setTimelineLimit(1); filter.setIncludeLeaveRooms(true); @@ -135,7 +135,6 @@ SyncApi.prototype.syncLeftRooms = function() { client.store.storeRoom(room); client.emit("Room", room); }); - client._syncedLeftRooms = true; return rooms; }); };