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
|
// 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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue