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

Commit

Permalink
Merge pull request #451 from matrix-org/rav/deviceinfo
Browse files Browse the repository at this point in the history
Update MemberDeviceInfo display
  • Loading branch information
richvdh authored Sep 9, 2016
2 parents dce2dd3 + b724b0c commit 17e763e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/views/rooms/MemberDeviceInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,16 @@ export default class MemberDeviceInfo extends React.Component {
);
}

var deviceName = this.props.device.display_name || this.props.device.deviceId;
var deviceName = this.props.device.getDisplayName() || this.props.device.deviceId;

// add the deviceId as a titletext to help with debugging
return (
<div className="mx_MemberDeviceInfo">
<div className="mx_MemberDeviceInfo" title={this.props.device.deviceId}>
<div className="mx_MemberDeviceInfo_deviceId">{deviceName}</div>
{indicator}
<div className="mx_MemberDeviceInfo_deviceKey">
{this.props.device.getFingerprint()}
</div>
{verifyButton}
{blockButton}
</div>
Expand Down

0 comments on commit 17e763e

Please sign in to comment.