mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 06:35:35 +08:00
don't close in UI, a js-sdk event will do that
This commit is contained in:
parent
99b04a6f70
commit
36d7b8e3ed
@ -38,11 +38,6 @@ export default class VerificationRequestToast extends React.PureComponent {
|
|||||||
let {counter} = this.state;
|
let {counter} = this.state;
|
||||||
counter = Math.max(0, counter - 1);
|
counter = Math.max(0, counter - 1);
|
||||||
this.setState({counter});
|
this.setState({counter});
|
||||||
|
|
||||||
if (counter == 0) {
|
|
||||||
clearInterval(this._intervalHandle);
|
|
||||||
this.cancel();
|
|
||||||
}
|
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
request.on("change", this._checkRequestIsPending);
|
request.on("change", this._checkRequestIsPending);
|
||||||
|
Loading…
Reference in New Issue
Block a user