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

Commit 03bd4b1

Browse files
authored
Merge pull request #574 from matrix-org/rav/s_block_blacklist
s/block/blacklist for e2e
2 parents 1a41637 + c7fb83e commit 03bd4b1

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

src/components/views/dialogs/EncryptedEventDialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ module.exports = React.createClass({
8383

8484
var verificationStatus = (<b>NOT verified</b>);
8585
if (device.isBlocked()) {
86-
verificationStatus = (<b>Blocked</b>);
86+
verificationStatus = (<b>Blacklisted</b>);
8787
} else if (device.isVerified()) {
8888
verificationStatus = "verified";
8989
}

src/components/views/elements/DeviceVerifyButtons.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default React.createClass({
4949
<p>
5050
If it matches, press the verify button below.
5151
If it doesnt, then someone else is intercepting this device
52-
and you probably want to press the block button instead.
52+
and you probably want to press the blacklist button instead.
5353
</p>
5454
<p>
5555
In future this verification process will be more sophisticated.
@@ -73,33 +73,33 @@ export default React.createClass({
7373
);
7474
},
7575

76-
onBlockClick: function() {
76+
onBlacklistClick: function() {
7777
MatrixClientPeg.get().setDeviceBlocked(
7878
this.props.userId, this.props.device.deviceId, true
7979
);
8080
},
8181

82-
onUnblockClick: function() {
82+
onUnblacklistClick: function() {
8383
MatrixClientPeg.get().setDeviceBlocked(
8484
this.props.userId, this.props.device.deviceId, false
8585
);
8686
},
8787

8888
render: function() {
89-
var blockButton = null, verifyButton = null;
89+
var blacklistButton = null, verifyButton = null;
9090

9191
if (this.props.device.isBlocked()) {
92-
blockButton = (
93-
<button className="mx_MemberDeviceInfo_textButton mx_MemberDeviceInfo_unblock"
94-
onClick={this.onUnblockClick}>
95-
Unblock
92+
blacklistButton = (
93+
<button className="mx_MemberDeviceInfo_textButton mx_MemberDeviceInfo_unblacklist"
94+
onClick={this.onUnblacklistClick}>
95+
Unblacklist
9696
</button>
9797
);
9898
} else {
99-
blockButton = (
100-
<button className="mx_MemberDeviceInfo_textButton mx_MemberDeviceInfo_block"
101-
onClick={this.onBlockClick}>
102-
Block
99+
blacklistButton = (
100+
<button className="mx_MemberDeviceInfo_textButton mx_MemberDeviceInfo_blacklist"
101+
onClick={this.onBlacklistClick}>
102+
Blacklist
103103
</button>
104104
);
105105
}
@@ -115,7 +115,7 @@ export default React.createClass({
115115
verifyButton = (
116116
<button className="mx_MemberDeviceInfo_textButton mx_MemberDeviceInfo_verify"
117117
onClick={this.onVerifyClick}>
118-
Verify
118+
Verify...
119119
</button>
120120
);
121121
}
@@ -124,7 +124,7 @@ export default React.createClass({
124124
return (
125125
<div className="mx_MemberDeviceInfo mx_DeviceVerifyButtons" >
126126
{ verifyButton }
127-
{ blockButton }
127+
{ blacklistButton }
128128
</div>
129129
);
130130
},

src/components/views/rooms/MemberDeviceInfo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export default class MemberDeviceInfo extends React.Component {
2424

2525
if (this.props.device.isBlocked()) {
2626
indicator = (
27-
<div className="mx_MemberDeviceInfo_blocked">
28-
<img src="img/e2e-blocked.svg" width="12" height="12" style={{ marginLeft: "-1px" }} alt="Blocked"/>
27+
<div className="mx_MemberDeviceInfo_blacklisted">
28+
<img src="img/e2e-blocked.svg" width="12" height="12" style={{ marginLeft: "-1px" }} alt="Blacklisted"/>
2929
</div>
3030
);
3131
} else if (this.props.device.isVerified()) {

0 commit comments

Comments
 (0)