You've already forked matrix-js-sdk
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:
@@ -278,7 +278,8 @@ Room.prototype.setSyncedMembership = function(membership) {
|
||||
* @return {bool} whether or not the members of this room need to be loaded
|
||||
*/
|
||||
Room.prototype.needsOutOfBandMembers = function() {
|
||||
return this.currentState.needsOutOfBandMembers();
|
||||
return this._opts.lazyLoadMembers &&
|
||||
this.currentState.needsOutOfBandMembers();
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -114,6 +114,7 @@ function SyncApi(client, opts) {
|
||||
SyncApi.prototype.createRoom = function(roomId) {
|
||||
const client = this.client;
|
||||
const room = new Room(roomId, client.getUserId(), {
|
||||
lazyLoadMembers: this.opts.lazyLoadMembers,
|
||||
pendingEventOrdering: this.opts.pendingEventOrdering,
|
||||
timelineSupport: client.timelineSupport,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user