forked from mystiq/hydrogen-web
Make getUserLevel() public
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
ddb7a16fb8
commit
f7a6fbd901
1 changed files with 2 additions and 2 deletions
|
@ -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") {
|
||||
|
|
Loading…
Reference in a new issue