Fix deviceverifybuttons

Use DeviceInfo from deviceVerificationChanged event rather than calling
non-existent getStoredDevice
pull/21833/head
Richard van der Hoff 2017-02-03 14:34:19 +00:00
parent 41936a957f
commit 827b5a6811
1 changed files with 2 additions and 2 deletions

View File

@ -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 });
}
},