mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
show right panel before waiting for .ready event to send
This commit is contained in:
parent
866fdd6185
commit
569d5b6156
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,6 @@ export default class VerificationRequestToast extends React.PureComponent {
|
|||
// no room id for to_device requests
|
||||
const cli = MatrixClientPeg.get();
|
||||
try {
|
||||
await request.accept();
|
||||
if (request.channel.roomId) {
|
||||
dis.dispatch({
|
||||
action: 'view_room',
|
||||
|
@ -99,6 +98,7 @@ export default class VerificationRequestToast extends React.PureComponent {
|
|||
verificationRequest: request,
|
||||
}, null, /* priority = */ false, /* static = */ true);
|
||||
}
|
||||
await request.accept();
|
||||
} catch (err) {
|
||||
console.error(err.message);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue