mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 03:18:49 +03:00
Fix the Weird auto-confirmation and cancellation
This commit is contained in:
parent
fd232b1f4a
commit
75efa5d3a2
2 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue