Fix the Weird auto-confirmation and cancellation

This commit is contained in:
CH Chethan Reddy 2020-06-25 23:29:50 +05:30
parent fd232b1f4a
commit 75efa5d3a2
2 changed files with 1 additions and 2 deletions

View file

@ -190,7 +190,6 @@ DeviceVerificationFlow::DeviceVerificationFlow(QObject *)
auto msg = auto msg =
std::get<mtx::events::DeviceEvent<msgs::KeyVerificationDone>>(message); std::get<mtx::events::DeviceEvent<msgs::KeyVerificationDone>>(message);
if (msg.content.transaction_id == this->transaction_id) { if (msg.content.transaction_id == this->transaction_id) {
this->startVerificationRequest();
emit this->deviceVerified(); emit this->deviceVerified();
} }
}); });

View file

@ -78,7 +78,7 @@ private:
QTimer *timeout = nullptr; QTimer *timeout = nullptr;
sas_ptr sas; sas_ptr sas;
bool isMacVerified; bool isMacVerified = false;
std::string mac_method; std::string mac_method;
std::string transaction_id; std::string transaction_id;
std::string commitment; std::string commitment;