mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
cleanup
This commit is contained in:
parent
e8c20c28b2
commit
20493f9e87
@ -615,7 +615,7 @@ export class Session {
|
|||||||
this._mediaRepository, this._platform, log);
|
this._mediaRepository, this._platform, log);
|
||||||
this._roomsBeingCreated.set(id, roomBeingCreated);
|
this._roomsBeingCreated.set(id, roomBeingCreated);
|
||||||
const promises = [roomBeingCreated.create(this._hsApi, log)];
|
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) {
|
if (loadProfiles) {
|
||||||
promises.push(roomBeingCreated.loadProfiles(this._hsApi, log));
|
promises.push(roomBeingCreated.loadProfiles(this._hsApi, log));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user