Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 5e960f5

Browse files
authored
Merge pull request #3487 from matrix-org/bwindels/redactpeers
Fix: allow mass redaction for members with same or larger power level
2 parents 9221dcd + a8695d3 commit 5e960f5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/views/rooms/MemberInfo.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ module.exports = createReactClass({
685685
mute: false,
686686
modifyLevel: false,
687687
modifyLevelMax: 0,
688-
redactMessages: false,
688+
redactMessages: me.powerLevel >= powerLevels.redact,
689689
};
690690

691691
const canAffectUser = them.powerLevel < me.powerLevel || isMe;
@@ -704,7 +704,6 @@ module.exports = createReactClass({
704704
can.mute = me.powerLevel >= editPowerLevel;
705705
can.modifyLevel = me.powerLevel >= editPowerLevel && (isMe || me.powerLevel > them.powerLevel);
706706
can.modifyLevelMax = me.powerLevel;
707-
can.redactMessages = me.powerLevel >= powerLevels.redact;
708707

709708
return can;
710709
},

0 commit comments

Comments
 (0)