mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
Remove await for some more getStoredDevice() calls
This commit is contained in:
parent
89a910c718
commit
126d81912b
2 changed files with 2 additions and 2 deletions
|
@ -129,7 +129,7 @@ export default createReactClass({
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const devices = await cli.getStoredDevicesForUser(userId);
|
const devices = cli.getStoredDevicesForUser(userId);
|
||||||
const anyDeviceUnverified = devices.some(device => {
|
const anyDeviceUnverified = devices.some(device => {
|
||||||
const { deviceId } = device;
|
const { deviceId } = device;
|
||||||
// For your own devices, we use the stricter check of cross-signing
|
// For your own devices, we use the stricter check of cross-signing
|
||||||
|
|
|
@ -51,7 +51,7 @@ export default class VerificationRequestToast extends React.PureComponent {
|
||||||
|
|
||||||
if (request.isSelfVerification) {
|
if (request.isSelfVerification) {
|
||||||
const cli = MatrixClientPeg.get();
|
const cli = MatrixClientPeg.get();
|
||||||
this.setState({device: await cli.getStoredDevice(cli.getUserId(), request.channel.deviceId)});
|
this.setState({device: cli.getStoredDevice(cli.getUserId(), request.channel.deviceId)});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue