From a8695d345bc0863a77da8b4e852ca308790d8238 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 27 Sep 2019 16:16:44 +0200 Subject: [PATCH] allow mass redaction for members with same or larger power level --- src/components/views/rooms/MemberInfo.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/views/rooms/MemberInfo.js b/src/components/views/rooms/MemberInfo.js index 37f280761b..1127c53854 100644 --- a/src/components/views/rooms/MemberInfo.js +++ b/src/components/views/rooms/MemberInfo.js @@ -685,7 +685,7 @@ module.exports = createReactClass({ mute: false, modifyLevel: false, modifyLevelMax: 0, - redactMessages: false, + redactMessages: me.powerLevel >= powerLevels.redact, }; const canAffectUser = them.powerLevel < me.powerLevel || isMe; @@ -704,7 +704,6 @@ module.exports = createReactClass({ can.mute = me.powerLevel >= editPowerLevel; can.modifyLevel = me.powerLevel >= editPowerLevel && (isMe || me.powerLevel > them.powerLevel); can.modifyLevelMax = me.powerLevel; - can.redactMessages = me.powerLevel >= powerLevels.redact; return can; },