Skip to content
Snippets Groups Projects
Verified Commit 40a3ee6e authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix verification requests showing up on startup

parent 9d6bc706
No related branches found
No related tags found
No related merge requests found
Pipeline #1366 failed
......@@ -275,6 +275,9 @@ TimelineViewManager::TimelineViewManager(CallManager *callManager, ChatPage *par
this,
[this](const mtx::events::RoomEvent<mtx::events::msg::KeyVerificationRequest> &message,
TimelineModel *model) {
if (this->isInitialSync_)
return;
auto event_id = QString::fromStdString(message.event_id);
if (!this->dvList.contains(event_id)) {
if (auto flow = DeviceVerificationFlow::NewInRoomVerification(
......@@ -292,6 +295,9 @@ TimelineViewManager::TimelineViewManager(CallManager *callManager, ChatPage *par
&ChatPage::receivedDeviceVerificationRequest,
this,
[this](const mtx::events::msg::KeyVerificationRequest &msg, std::string sender) {
if (this->isInitialSync_)
return;
if (!msg.transaction_id)
return;
......@@ -308,6 +314,9 @@ TimelineViewManager::TimelineViewManager(CallManager *callManager, ChatPage *par
&ChatPage::receivedDeviceVerificationStart,
this,
[this](const mtx::events::msg::KeyVerificationStart &msg, std::string sender) {
if (this->isInitialSync_)
return;
if (!msg.transaction_id)
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment