diff --git a/src/components/views/dialogs/EncryptedEventDialog.js b/src/components/views/dialogs/EncryptedEventDialog.js index e422c57536..d84376cc26 100644 --- a/src/components/views/dialogs/EncryptedEventDialog.js +++ b/src/components/views/dialogs/EncryptedEventDialog.js @@ -76,23 +76,23 @@ module.exports = React.createClass({ Sender device name - { device.getDisplayName() } + { device ? device.getDisplayName() : unknown device} Sender device ID - { device.deviceId } + { device ? { device.deviceId } : unknown device} - Sender device verification: + Sender device verification { MatrixClientPeg.get().isEventSenderVerified(event) ? "verified" : NOT verified } Sender device ed25519 identity key - { device.getFingerprint() } + { device ? {device.getFingerprint()} : unknown device} Sender device curve25519 olm key - { event.getWireContent().sender_key } + { event.getWireContent().sender_key } Algorithm @@ -106,6 +106,10 @@ module.exports = React.createClass({ ) : '' } + + Session ID + { event.getWireContent().session_id } + diff --git a/src/components/views/rooms/EventTile.js b/src/components/views/rooms/EventTile.js index 346a1b7c99..1efd46b94f 100644 --- a/src/components/views/rooms/EventTile.js +++ b/src/components/views/rooms/EventTile.js @@ -471,10 +471,10 @@ module.exports = React.createClass({ e2e = ; } else if (this.state.verified == true || (e2eEnabled && this.props.eventSendStatus)) { - e2e = Encrypted by a verified device; + e2e = ; } else { - e2e = Encrypted by an unverified device!; + e2e = ; } } else if (e2eEnabled) { diff --git a/src/components/views/rooms/MemberDeviceInfo.js b/src/components/views/rooms/MemberDeviceInfo.js index 27bafa86cd..fac4c4c507 100644 --- a/src/components/views/rooms/MemberDeviceInfo.js +++ b/src/components/views/rooms/MemberDeviceInfo.js @@ -87,6 +87,10 @@ export default class MemberDeviceInfo extends React.Component { } render() { + if (!this.props.device) { + return
; + } + var indicator = null, blockButton = null, verifyButton = null; if (this.props.device.isBlocked()) { blockButton = ( @@ -120,36 +124,39 @@ export default class MemberDeviceInfo extends React.Component { ); } - if (this.props.device.isBlocked()) { - indicator = ( -
Blocked
- ); - } else if (this.props.device.isVerified()) { - indicator = ( -
Verified
- ); - - } else { - indicator = ( -
Unverified
- ); - } - - var deviceName = this.props.device.getDisplayName() || this.props.device.deviceId; - - var info; if (!this.props.hideInfo) { - info = ( -
-
{deviceName}
- {indicator} + if (this.props.device.isBlocked()) { + indicator = ( +
+ Blocked +
+ ); + } else if (this.props.device.isVerified()) { + indicator = ( +
+ Verified +
+ ); + } else { + indicator = ( +
+ Unverified +
+ ); + } + + var deviceName = this.props.device.getDisplayName() || this.props.device.deviceId; + + var info = ( +
+
{deviceName}{indicator}
); } // add the deviceId as a titletext to help with debugging return ( -
+
{ info } { verifyButton } { blockButton }