From f7a6fbd90171eeb84f28098512d9c957b95c6dd8 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 18 Jun 2021 13:13:19 +0530 Subject: [PATCH] Make getUserLevel() public Signed-off-by: RMidhunSuresh --- src/matrix/room/timeline/PowerLevels.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrix/room/timeline/PowerLevels.js b/src/matrix/room/timeline/PowerLevels.js index d2fb026d..c19f992d 100644 --- a/src/matrix/room/timeline/PowerLevels.js +++ b/src/matrix/room/timeline/PowerLevels.js @@ -42,10 +42,10 @@ export class PowerLevels { if (this._membership !== "join") { return Number.MIN_SAFE_INTEGER; } - return this._getUserLevel(this._ownUserId); + return this.getUserLevel(this._ownUserId); } - _getUserLevel(userId) { + getUserLevel(userId) { if (this._plEvent) { let userLevel = this._plEvent.content?.users?.[userId]; if (typeof userLevel !== "number") {