mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-07-01 00:51:36 +00:00
show room ID in consequence log
This commit is contained in:
parent
fb027fe2af
commit
8d9f7fbb87
|
@ -871,7 +871,9 @@ export class Mjolnir {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
let message = `protection ${protection.name} enacting ${ConsequenceType[consequence.type]} against ${htmlEscape(sender)}`;
|
let message = `protection ${protection.name} enacting ${ConsequenceType[consequence.type]}`
|
||||||
|
+ ` against ${htmlEscape(sender)}`
|
||||||
|
+ ` in ${htmlEscape(roomId)}`;
|
||||||
if (consequence.reason !== undefined) {
|
if (consequence.reason !== undefined) {
|
||||||
// even though internally-sourced, there's no promise that `consequence.reason`
|
// even though internally-sourced, there's no promise that `consequence.reason`
|
||||||
// will never have user-supplied information, so escape it
|
// will never have user-supplied information, so escape it
|
||||||
|
|
Loading…
Reference in New Issue
Block a user