From a3efa45795c27cacbcff015e23b3e7e29d933d4c Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 27 Mar 2017 16:53:00 +0100 Subject: [PATCH] Correct confirm prompt for disinvite It should be 'disinvite' not 'kick', and probably doesn't really need a reason. --- src/components/views/rooms/MemberInfo.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/views/rooms/MemberInfo.js b/src/components/views/rooms/MemberInfo.js index 39a6c052f8..1459ad3eb7 100644 --- a/src/components/views/rooms/MemberInfo.js +++ b/src/components/views/rooms/MemberInfo.js @@ -218,11 +218,13 @@ module.exports = WithMatrixClient(React.createClass({ }, onKick: function() { + const membership = this.props.member.membership; + const kickLabel = membership === "invite" ? "Disinvite" : "Kick"; const ConfirmUserActionDialog = sdk.getComponent("dialogs.ConfirmUserActionDialog"); Modal.createDialog(ConfirmUserActionDialog, { member: this.props.member, - action: 'Kick', - askReason: true, + action: kickLabel, + askReason: membership == "join", danger: true, onFinished: (proceed, reason) => { if (!proceed) return;