From 75efa5d3a2586d16226526ddacf00ce3e8bd3367 Mon Sep 17 00:00:00 2001 From: CH Chethan Reddy <40890937+Chethan2k1@users.noreply.github.com> Date: Thu, 25 Jun 2020 23:29:50 +0530 Subject: [PATCH] Fix the Weird auto-confirmation and cancellation --- src/DeviceVerificationFlow.cpp | 1 - src/DeviceVerificationFlow.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/DeviceVerificationFlow.cpp b/src/DeviceVerificationFlow.cpp index 9f120a00..9b260892 100644 --- a/src/DeviceVerificationFlow.cpp +++ b/src/DeviceVerificationFlow.cpp @@ -190,7 +190,6 @@ DeviceVerificationFlow::DeviceVerificationFlow(QObject *) auto msg = std::get>(message); if (msg.content.transaction_id == this->transaction_id) { - this->startVerificationRequest(); emit this->deviceVerified(); } }); diff --git a/src/DeviceVerificationFlow.h b/src/DeviceVerificationFlow.h index 5830e705..ea86a10b 100644 --- a/src/DeviceVerificationFlow.h +++ b/src/DeviceVerificationFlow.h @@ -78,7 +78,7 @@ private: QTimer *timeout = nullptr; sas_ptr sas; - bool isMacVerified; + bool isMacVerified = false; std::string mac_method; std::string transaction_id; std::string commitment;