You've already forked matrix-js-sdk
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user