Signed-off-by: Aaron Raimist <aaron@raim.ist>
pull/21833/head
Aaron Raimist 2021-06-22 22:48:01 -05:00
parent 38d0ab3c44
commit 9d723cd1b6
No known key found for this signature in database
GPG Key ID: 37419210002890EF
1 changed files with 2 additions and 2 deletions

View File

@ -444,12 +444,12 @@ function textForPowerEvent(event): () => string | null {
const diffs = [];
users.forEach((userId) => {
// Previous power level
var from = event.getPrevContent().users[userId];
let from = event.getPrevContent().users[userId];
if (!Number.isInteger(from)) {
from = previousUserDefault;
}
// Current power level
var to = event.getContent().users[userId];
let to = event.getContent().users[userId];
if (!Number.isInteger(to)) {
to = currentUserDefault;
}