mirror of https://github.com/vector-im/riot-web
parent
38d0ab3c44
commit
9d723cd1b6
|
@ -444,12 +444,12 @@ function textForPowerEvent(event): () => string | null {
|
||||||
const diffs = [];
|
const diffs = [];
|
||||||
users.forEach((userId) => {
|
users.forEach((userId) => {
|
||||||
// Previous power level
|
// Previous power level
|
||||||
var from = event.getPrevContent().users[userId];
|
let from = event.getPrevContent().users[userId];
|
||||||
if (!Number.isInteger(from)) {
|
if (!Number.isInteger(from)) {
|
||||||
from = previousUserDefault;
|
from = previousUserDefault;
|
||||||
}
|
}
|
||||||
// Current power level
|
// Current power level
|
||||||
var to = event.getContent().users[userId];
|
let to = event.getContent().users[userId];
|
||||||
if (!Number.isInteger(to)) {
|
if (!Number.isInteger(to)) {
|
||||||
to = currentUserDefault;
|
to = currentUserDefault;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue