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

Commit 827b5a6

Browse files
committed
Fix deviceverifybuttons
Use DeviceInfo from deviceVerificationChanged event rather than calling non-existent getStoredDevice
1 parent 41936a9 commit 827b5a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/views/elements/DeviceVerifyButtons.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ export default React.createClass({
4343
cli.removeListener("deviceVerificationChanged", this.onDeviceVerificationChanged);
4444
},
4545

46-
onDeviceVerificationChanged: function(userId, deviceId) {
46+
onDeviceVerificationChanged: function(userId, deviceId, deviceInfo) {
4747
if (userId === this.props.userId && deviceId === this.props.device.deviceId) {
48-
this.setState({ device: MatrixClientPeg.get().getStoredDevice(userId, deviceId) });
48+
this.setState({ device: deviceInfo });
4949
}
5050
},
5151

0 commit comments

Comments
 (0)