1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-16 06:42:26 +03:00

also enable 4s when accepting a verification request

This commit is contained in:
Bruno Windels
2020-03-10 16:54:49 +01:00
parent ddbfe4e1fa
commit ab2e3a3465
2 changed files with 5 additions and 1 deletions

View File

@@ -24,6 +24,7 @@ import {userLabelForEventRoom} from "../../../utils/KeyVerificationStateObserver
import dis from "../../../dispatcher";
import ToastStore from "../../../stores/ToastStore";
import Modal from "../../../Modal";
import {enable4SIfNeeded} from "../../../verification";
export default class VerificationRequestToast extends React.PureComponent {
constructor(props) {
@@ -73,6 +74,9 @@ export default class VerificationRequestToast extends React.PureComponent {
}
accept = async () => {
if (!await enable4SIfNeeded()) {
return;
}
ToastStore.sharedInstance().dismissToast(this.props.toastKey);
const {request} = this.props;
// no room id for to_device requests