1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2026-01-03 23:22:30 +03:00

Don't lie in comments; remove spurious flag setting

This commit is contained in:
Kegan Dougal
2015-12-18 15:29:28 +00:00
parent de53b292a2
commit 1174147d64

View File

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