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

Commit 0a3d9fc

Browse files
committed
Fix lint
1 parent 67bd2cf commit 0a3d9fc

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

src/components/views/dialogs/UnknownDeviceDialog.js

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ function UserUnknownDeviceList(props) {
4545
const {userId, userDevices} = props;
4646

4747
const deviceListEntries = Object.keys(userDevices).map((deviceId) =>
48-
<DeviceListEntry key={ deviceId } userId={ userId } device={ userDevices[deviceId] } />,
48+
<DeviceListEntry key={ deviceId } userId={ userId }
49+
device={ userDevices[deviceId] } />,
4950
);
5051

5152
return (
@@ -105,14 +106,19 @@ export default React.createClass({
105106

106107
render: function() {
107108
const client = MatrixClientPeg.get();
108-
const blacklistUnverified = client.getGlobalBlacklistUnverifiedDevices() || this.props.room.getBlacklistUnverifiedDevices();
109+
const blacklistUnverified = client.getGlobalBlacklistUnverifiedDevices() ||
110+
this.props.room.getBlacklistUnverifiedDevices();
109111

110112
let warning;
111113
if (blacklistUnverified) {
112-
warning = <h4>You are currently blacklisting unverified devices; to send messages to these devices you must verify them.</h4>
113-
}
114-
else {
115-
warning = <h4>We strongly recommend you verify them before continuing.</h4>
114+
warning = (
115+
<h4>
116+
You are currently blacklisting unverified devices; to send
117+
messages to these devices you must verify them.
118+
</h4>
119+
);
120+
} else {
121+
warning = <h4>We strongly recommend you verify them before continuing.</h4>;
116122
}
117123

118124
const BaseDialog = sdk.getComponent('views.dialogs.BaseDialog');
@@ -122,7 +128,10 @@ export default React.createClass({
122128
title='Room contains unknown devices'
123129
>
124130
<div className="mx_Dialog_content">
125-
<h4>This room contains unknown devices which have not been verified.</h4>
131+
<h4>
132+
This room contains unknown devices which have not been
133+
verified.
134+
</h4>
126135
{ warning }
127136
Unknown devices:
128137
<UnknownDeviceList devices={this.props.devices} />

0 commit comments

Comments
 (0)