From ce68a5bfc81758c944480f4376cd0bbd1127a135 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Wed, 7 Sep 2016 17:08:02 +0100 Subject: [PATCH] clean up --- src/ScalarMessaging.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ScalarMessaging.js b/src/ScalarMessaging.js index c994bfe706..7399383db8 100644 --- a/src/ScalarMessaging.js +++ b/src/ScalarMessaging.js @@ -203,17 +203,15 @@ function setBotPower(event, roomId, userId, level) { return; } - client.getStateEvent(roomId, "m.room.power_levels", "").then((rawPowerState) => { - console.log(rawPowerState); + client.getStateEvent(roomId, "m.room.power_levels", "").then((powerLevels) => { let powerEvent = new MatrixEvent( { type: "m.room.power_levels", - content: rawPowerState, + content: powerLevels, } ); client.setPowerLevel(roomId, userId, level, powerEvent).done(() => { - console.log('Power level has been set'); sendResponse(event, { success: true, });