use canAccept in toast, which takes local echo into account

pull/21833/head
Bruno Windels 2020-02-13 17:28:10 +01:00
parent ec708b5e9b
commit 3ec0301f9d
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ export default class VerificationRequestToast extends React.PureComponent {
_checkRequestIsPending = () => { _checkRequestIsPending = () => {
const {request} = this.props; const {request} = this.props;
if (request.ready || request.done || request.cancelled || request.observeOnly) { if (!request.canAccept) {
ToastStore.sharedInstance().dismissToast(this.props.toastKey); ToastStore.sharedInstance().dismissToast(this.props.toastKey);
} }
}; };