From 0c4c018ceb11beb1bfd2215b8c82660d87221ded Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 2 Jun 2021 18:43:47 +0200 Subject: [PATCH] add note that powerlevels won't update when the state event is changed --- src/matrix/room/timeline/Timeline.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/matrix/room/timeline/Timeline.js b/src/matrix/room/timeline/Timeline.js index 49c171c1..eab71255 100644 --- a/src/matrix/room/timeline/Timeline.js +++ b/src/matrix/room/timeline/Timeline.js @@ -76,6 +76,7 @@ export class Timeline { } async _loadPowerLevels(txn) { + // TODO: update power levels as state is updated const powerLevelsState = await txn.roomState.get(this._roomId, "m.room.power_levels", ""); if (powerLevelsState) { return new PowerLevels({