From 20493f9e87a7dadd9b7105e6e73d82645faaa0a2 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 10 Feb 2022 11:07:13 +0100 Subject: [PATCH] cleanup --- src/matrix/Session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/Session.js b/src/matrix/Session.js index 2d4516ea..a5f48bf3 100644 --- a/src/matrix/Session.js +++ b/src/matrix/Session.js @@ -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)); }