mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-19 05:21:22 +02:00
Fix deviceverifybuttons
Use DeviceInfo from deviceVerificationChanged event rather than calling non-existent getStoredDevice
This commit is contained in:
parent
41936a957f
commit
827b5a6811
@ -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 });
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user