show right panel before waiting for .ready event to send

This commit is contained in:
Bruno Windels 2020-02-25 13:13:31 +01:00
parent 866fdd6185
commit 569d5b6156

View file

@ -78,7 +78,6 @@ export default class VerificationRequestToast extends React.PureComponent {
// no room id for to_device requests // no room id for to_device requests
const cli = MatrixClientPeg.get(); const cli = MatrixClientPeg.get();
try { try {
await request.accept();
if (request.channel.roomId) { if (request.channel.roomId) {
dis.dispatch({ dis.dispatch({
action: 'view_room', action: 'view_room',
@ -99,6 +98,7 @@ export default class VerificationRequestToast extends React.PureComponent {
verificationRequest: request, verificationRequest: request,
}, null, /* priority = */ false, /* static = */ true); }, null, /* priority = */ false, /* static = */ true);
} }
await request.accept();
} catch (err) { } catch (err) {
console.error(err.message); console.error(err.message);
} }