1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

pass LL flag to room, to know if we should wait for lazy members at all

This commit is contained in:
Bruno Windels
2018-08-06 18:56:29 +02:00
parent b4afe97289
commit b14be026b7
2 changed files with 3 additions and 1 deletions

View File

@@ -278,7 +278,8 @@ Room.prototype.setSyncedMembership = function(membership) {
* @return {bool} whether or not the members of this room need to be loaded * @return {bool} whether or not the members of this room need to be loaded
*/ */
Room.prototype.needsOutOfBandMembers = function() { Room.prototype.needsOutOfBandMembers = function() {
return this.currentState.needsOutOfBandMembers(); return this._opts.lazyLoadMembers &&
this.currentState.needsOutOfBandMembers();
}; };
/** /**

View File

@@ -114,6 +114,7 @@ function SyncApi(client, opts) {
SyncApi.prototype.createRoom = function(roomId) { SyncApi.prototype.createRoom = function(roomId) {
const client = this.client; const client = this.client;
const room = new Room(roomId, client.getUserId(), { const room = new Room(roomId, client.getUserId(), {
lazyLoadMembers: this.opts.lazyLoadMembers,
pendingEventOrdering: this.opts.pendingEventOrdering, pendingEventOrdering: this.opts.pendingEventOrdering,
timelineSupport: client.timelineSupport, timelineSupport: client.timelineSupport,
}); });