You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
hide toast when request is accepted
if this is a .request > .ready request, dismissing when in .ready is what we want, as that is how you accept the request if this is a .start request, we shouldn't dismiss so only add .ready to the phases to hide the toast, not .started
This commit is contained in:
@@ -58,7 +58,7 @@ export default class VerificationRequestToast extends React.PureComponent {
|
|||||||
|
|
||||||
_checkRequestIsPending = () => {
|
_checkRequestIsPending = () => {
|
||||||
const {request} = this.props;
|
const {request} = this.props;
|
||||||
if (request.done || request.cancelled || request.observeOnly) {
|
if (request.ready || request.done || request.cancelled || request.observeOnly) {
|
||||||
ToastStore.sharedInstance().dismissToast(this.props.toastKey);
|
ToastStore.sharedInstance().dismissToast(this.props.toastKey);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user