From e406aa6e456475e426fd8f319beac0ffd98ad519 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Thu, 15 Jul 2021 16:58:29 +0530 Subject: [PATCH] Add jsdoc for powerlevels Signed-off-by: RMidhunSuresh --- src/matrix/room/BaseRoom.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/matrix/room/BaseRoom.js b/src/matrix/room/BaseRoom.js index bcb8141f..cb2e439f 100644 --- a/src/matrix/room/BaseRoom.js +++ b/src/matrix/room/BaseRoom.js @@ -413,6 +413,11 @@ export class BaseRoom extends EventEmitter { } } + /** + * Get the PowerLevels of the room. + * Always subscribe to the value returned by this method. + * @returns {RetainedObservableValue} PowerLevels of the room + */ async observePowerLevels() { if (this._powerLevelLoading) { await this._powerLevelLoading; } let observable = this._powerLevels;