1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-18 05:42:00 +03:00

Use the history length specified in startClient() for room initial syncs.

This commit is contained in:
Kegan Dougal
2015-11-03 10:15:30 +00:00
parent c1160d3419
commit 0fb307d09b
2 changed files with 2 additions and 2 deletions

View File

@@ -2176,7 +2176,8 @@ function _syncRoom(client, room) {
}
var defer = q.defer();
client._syncingRooms[room.roomId] = defer.promise;
client.roomInitialSync(room.roomId, 8).done(function(res) {
client.roomInitialSync(room.roomId, client._config.initialSyncLimit).done(
function(res) {
room.timeline = []; // blow away any previous messages.
_processRoomEvents(client, room, res.state, res.messages);
room.recalculate(client.credentials.userId);