diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-07-12 23:02:26 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-07-12 23:02:26 +0200 |
commit | 40a3ee6eb2ecde852af2ff6d6ecd21090c119fbb (patch) | |
tree | 7e71d300023c3d97e2519e45f00806045bfa4ca4 /src | |
parent | Don't use full dump for replies (diff) | |
download | nheko-40a3ee6eb2ecde852af2ff6d6ecd21090c119fbb.tar.xz |
Fix verification requests showing up on startup
Diffstat (limited to 'src')
-rw-r--r-- | src/timeline/TimelineViewManager.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp index a6fc674e..b7fd4093 100644 --- a/src/timeline/TimelineViewManager.cpp +++ b/src/timeline/TimelineViewManager.cpp @@ -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; |