diff --git a/src/components/views/rooms/MemberDeviceInfo.js b/src/components/views/rooms/MemberDeviceInfo.js index da53c744b2..ebc2ab1c32 100644 --- a/src/components/views/rooms/MemberDeviceInfo.js +++ b/src/components/views/rooms/MemberDeviceInfo.js @@ -25,8 +25,15 @@ module.exports = React.createClass({ }, onVerifyClick: function() { - MatrixClientPeg.get().setDeviceVerified(this.props.userId, - this.props.device.id); + MatrixClientPeg.get().setDeviceVerified( + this.props.userId, this.props.device.id, true + ); + }, + + onUnverifyClick: function() { + MatrixClientPeg.get().setDeviceVerified( + this.props.userId, this.props.device.id, false + ); }, render: function() { @@ -35,9 +42,15 @@ module.exports = React.createClass({ indicator = (