This commit is contained in:
Bruno Windels 2022-02-10 11:07:13 +01:00
parent e8c20c28b2
commit 20493f9e87

View file

@ -615,7 +615,7 @@ export class Session {
this._mediaRepository, this._platform, log);
this._roomsBeingCreated.set(id, roomBeingCreated);
const promises = [roomBeingCreated.create(this._hsApi, log)];
const loadProfiles = !(options.loadProfiles === false); // default to true
const loadProfiles = options.loadProfiles !== false; // default to true
if (loadProfiles) {
promises.push(roomBeingCreated.loadProfiles(this._hsApi, log));
}