From c7fb83ed2dfeb39d27369faa9373bcc0801fd25d Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 29 Nov 2016 18:25:26 +0000 Subject: [PATCH] s/block/blacklist for e2e Fixes https://github.com/vector-im/vector-web/issues/2315 --- .../views/dialogs/EncryptedEventDialog.js | 2 +- .../views/elements/DeviceVerifyButtons.js | 28 +++++++++---------- .../views/rooms/MemberDeviceInfo.js | 4 +-- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/components/views/dialogs/EncryptedEventDialog.js b/src/components/views/dialogs/EncryptedEventDialog.js index c86b1d20f8..ba706e0aa5 100644 --- a/src/components/views/dialogs/EncryptedEventDialog.js +++ b/src/components/views/dialogs/EncryptedEventDialog.js @@ -83,7 +83,7 @@ module.exports = React.createClass({ var verificationStatus = (NOT verified); if (device.isBlocked()) { - verificationStatus = (Blocked); + verificationStatus = (Blacklisted); } else if (device.isVerified()) { verificationStatus = "verified"; } diff --git a/src/components/views/elements/DeviceVerifyButtons.js b/src/components/views/elements/DeviceVerifyButtons.js index 90af1635c9..aeb93e866c 100644 --- a/src/components/views/elements/DeviceVerifyButtons.js +++ b/src/components/views/elements/DeviceVerifyButtons.js @@ -49,7 +49,7 @@ export default React.createClass({

If it matches, press the verify button below. If it doesnt, then someone else is intercepting this device - and you probably want to press the block button instead. + and you probably want to press the blacklist button instead.

In future this verification process will be more sophisticated. @@ -73,33 +73,33 @@ export default React.createClass({ ); }, - onBlockClick: function() { + onBlacklistClick: function() { MatrixClientPeg.get().setDeviceBlocked( this.props.userId, this.props.device.deviceId, true ); }, - onUnblockClick: function() { + onUnblacklistClick: function() { MatrixClientPeg.get().setDeviceBlocked( this.props.userId, this.props.device.deviceId, false ); }, render: function() { - var blockButton = null, verifyButton = null; + var blacklistButton = null, verifyButton = null; if (this.props.device.isBlocked()) { - blockButton = ( - ); } else { - blockButton = ( - ); } @@ -115,7 +115,7 @@ export default React.createClass({ verifyButton = ( ); } @@ -124,7 +124,7 @@ export default React.createClass({ return (

{ verifyButton } - { blockButton } + { blacklistButton }
); }, diff --git a/src/components/views/rooms/MemberDeviceInfo.js b/src/components/views/rooms/MemberDeviceInfo.js index 51bf7d3637..1e7850ab44 100644 --- a/src/components/views/rooms/MemberDeviceInfo.js +++ b/src/components/views/rooms/MemberDeviceInfo.js @@ -24,8 +24,8 @@ export default class MemberDeviceInfo extends React.Component { if (this.props.device.isBlocked()) { indicator = ( -
- Blocked +
+ Blacklisted
); } else if (this.props.device.isVerified()) {