summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorCH Chethan Reddy <40890937+Chethan2k1@users.noreply.github.com>2020-06-25 23:29:50 +0530
committerCH Chethan Reddy <40890937+Chethan2k1@users.noreply.github.com>2020-07-30 22:10:27 +0530
commit75efa5d3a2586d16226526ddacf00ce3e8bd3367 (patch)
tree5ff23d0638ccdf2db5b12b69b5fdf42aa1202b17 /src
parentSome more fixes (diff)
downloadnheko-75efa5d3a2586d16226526ddacf00ce3e8bd3367.tar.xz
Fix the Weird auto-confirmation and cancellation
Diffstat (limited to 'src')
-rw-r--r--src/DeviceVerificationFlow.cpp1
-rw-r--r--src/DeviceVerificationFlow.h2
2 files changed, 1 insertions, 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<mtx::events::DeviceEvent<msgs::KeyVerificationDone>>(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;