From 14c00f50fcca1bff9012ad00993fc69acd4860eb Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Wed, 14 Jul 2021 13:54:29 +0530 Subject: [PATCH] Make loadPowerLevels private Signed-off-by: RMidhunSuresh --- src/matrix/room/BaseRoom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrix/room/BaseRoom.js b/src/matrix/room/BaseRoom.js index 832406e1..7f5992ee 100644 --- a/src/matrix/room/BaseRoom.js +++ b/src/matrix/room/BaseRoom.js @@ -390,7 +390,7 @@ export class BaseRoom extends EventEmitter { return this._summary.data.membership; } - async loadPowerLevels() { + async _loadPowerLevels() { const txn = await this._storage.readTxn([this._storage.storeNames.roomState]); const powerLevelsState = await txn.roomState.get(this._roomId, "m.room.power_levels", ""); if (powerLevelsState) { @@ -416,7 +416,7 @@ export class BaseRoom extends EventEmitter { async observePowerLevels() { let observable = this._powerLevels; if (!observable) { - const powerLevels = await this.loadPowerLevels(); + const powerLevels = await this._loadPowerLevels(); observable = new RetainedObservableValue(powerLevels, () => { this._powerLevels = null; }); this._powerLevels = observable; }