From 690e934b27adc4a245a7611bacfce3af91652631 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 29 Apr 2020 11:02:22 +0100 Subject: [PATCH] Remove await for some more getStoredDevice() calls --- src/components/views/rooms/MemberTile.js | 2 +- src/components/views/toasts/VerificationRequestToast.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/rooms/MemberTile.js b/src/components/views/rooms/MemberTile.js index d830624f8a..1c609afcaa 100644 --- a/src/components/views/rooms/MemberTile.js +++ b/src/components/views/rooms/MemberTile.js @@ -129,7 +129,7 @@ export default createReactClass({ return; } - const devices = await cli.getStoredDevicesForUser(userId); + const devices = cli.getStoredDevicesForUser(userId); const anyDeviceUnverified = devices.some(device => { const { deviceId } = device; // For your own devices, we use the stricter check of cross-signing diff --git a/src/components/views/toasts/VerificationRequestToast.js b/src/components/views/toasts/VerificationRequestToast.js index 6ca582fbc7..6447e87627 100644 --- a/src/components/views/toasts/VerificationRequestToast.js +++ b/src/components/views/toasts/VerificationRequestToast.js @@ -51,7 +51,7 @@ export default class VerificationRequestToast extends React.PureComponent { if (request.isSelfVerification) { 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)}); } }