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

Commit

Permalink
Fix deviceverifybuttons
Browse files Browse the repository at this point in the history
Use DeviceInfo from deviceVerificationChanged event rather than calling
non-existent getStoredDevice
  • Loading branch information
richvdh committed Feb 3, 2017
1 parent 41936a9 commit 827b5a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/views/elements/DeviceVerifyButtons.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ export default React.createClass({
cli.removeListener("deviceVerificationChanged", this.onDeviceVerificationChanged);
},

onDeviceVerificationChanged: function(userId, deviceId) {
onDeviceVerificationChanged: function(userId, deviceId, deviceInfo) {
if (userId === this.props.userId && deviceId === this.props.device.deviceId) {
this.setState({ device: MatrixClientPeg.get().getStoredDevice(userId, deviceId) });
this.setState({ device: deviceInfo });
}
},

Expand Down

0 comments on commit 827b5a6

Please sign in to comment.