From aa0cca9306f2e56f134a82937c87e397346cd8b9 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Mon, 8 Mar 2021 04:46:47 +0000 Subject: [PATCH] report IP of self-verification reqs --- .../views/toasts/VerificationRequestToast.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/components/views/toasts/VerificationRequestToast.tsx b/src/components/views/toasts/VerificationRequestToast.tsx index 8c8a74b2be..73440eb822 100644 --- a/src/components/views/toasts/VerificationRequestToast.tsx +++ b/src/components/views/toasts/VerificationRequestToast.tsx @@ -38,6 +38,7 @@ interface IProps { interface IState { counter: number; device?: DeviceInfo; + IP?: string; } export default class VerificationRequestToast extends React.PureComponent { @@ -66,9 +67,15 @@ export default class VerificationRequestToast extends React.PureComponent { + request.cancel(); + }, }, null, /* priority = */ false, /* static = */ true); } await request.accept(); @@ -131,9 +141,10 @@ export default class VerificationRequestToast extends React.PureComponent