From cb5e598e955535889c46d058f63342e871f53226 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 18 Jun 2021 13:14:11 +0530 Subject: [PATCH] Getter for powerlevel from room Signed-off-by: RMidhunSuresh --- src/matrix/room/BaseRoom.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/matrix/room/BaseRoom.js b/src/matrix/room/BaseRoom.js index 9d33c5c5..ac5fa59e 100644 --- a/src/matrix/room/BaseRoom.js +++ b/src/matrix/room/BaseRoom.js @@ -388,6 +388,10 @@ export class BaseRoom extends EventEmitter { return this._summary.data.membership; } + get powerLevels() { + return this._timeline.powerLevels; + } + enableSessionBackup(sessionBackup) { this._roomEncryption?.enableSessionBackup(sessionBackup); // TODO: do we really want to do this every time you open the app?