From 77a06756e3c9ff354dfd5b81202b3c78ec821cc5 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Wed, 13 Mar 2019 12:58:23 +0000 Subject: [PATCH] Remove padlock click handler to show unknown devices The unknown devices dialog is confusing at the moment due to the complex trust model in Riot involving various possible device states. The room header padlock allows you to access this dialog even if there are no unknown devices, which leads users to be unsure what they can believe and reduces confidence in Riot. For now, we'll remove the room header click handler that shows this dialog. Fixes https://github.com/vector-im/riot-web/issues/8815 --- src/components/views/rooms/RoomHeader.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/components/views/rooms/RoomHeader.js b/src/components/views/rooms/RoomHeader.js index 5e56f59425..435b41f828 100644 --- a/src/components/views/rooms/RoomHeader.js +++ b/src/components/views/rooms/RoomHeader.js @@ -32,7 +32,6 @@ import {CancelButton} from './SimpleRoomHeader'; import SettingsStore from "../../../settings/SettingsStore"; import RoomHeaderButtons from '../right_panel/RoomHeaderButtons'; import E2EIcon from './E2EIcon'; -import * as cryptodevices from '../../../cryptodevices'; module.exports = React.createClass({ displayName: 'RoomHeader', @@ -146,12 +145,6 @@ module.exports = React.createClass({ return !(currentPinEvent.getContent().pinned && currentPinEvent.getContent().pinned.length <= 0); }, - _onShowDevicesClick: function() { - if (this.props.e2eStatus === "warning") { - cryptodevices.showUnknownDeviceDialogForMessages(MatrixClientPeg.get(), this.props.room); - } - }, - render: function() { const RoomAvatar = sdk.getComponent("avatars.RoomAvatar"); const EmojiText = sdk.getComponent('elements.EmojiText'); @@ -162,7 +155,7 @@ module.exports = React.createClass({ let pinnedEventsButton = null; const e2eIcon = this.props.e2eStatus ? - : + : undefined; if (this.props.onCancelClick) {