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