mirror of https://github.com/vector-im/riot-web
use canAccept in toast, which takes local echo into account
parent
ec708b5e9b
commit
3ec0301f9d
|
@ -58,7 +58,7 @@ export default class VerificationRequestToast extends React.PureComponent {
|
|||
|
||||
_checkRequestIsPending = () => {
|
||||
const {request} = this.props;
|
||||
if (request.ready || request.done || request.cancelled || request.observeOnly) {
|
||||
if (!request.canAccept) {
|
||||
ToastStore.sharedInstance().dismissToast(this.props.toastKey);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue