From 827b5a6811ac6b9d1f9a3002a94f9f6ac3f1d49c Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Fri, 3 Feb 2017 14:34:19 +0000 Subject: [PATCH] Fix deviceverifybuttons Use DeviceInfo from deviceVerificationChanged event rather than calling non-existent getStoredDevice --- src/components/views/elements/DeviceVerifyButtons.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/elements/DeviceVerifyButtons.js b/src/components/views/elements/DeviceVerifyButtons.js index 7e209232b6..fdd34e6ad2 100644 --- a/src/components/views/elements/DeviceVerifyButtons.js +++ b/src/components/views/elements/DeviceVerifyButtons.js @@ -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 }); } },