summary refs log tree commit diff
path: root/src/timeline/EventStore.h
diff options
context:
space:
mode:
authorCH Chethan Reddy <40890937+Chethan2k1@users.noreply.github.com>2020-08-09 08:35:15 +0530
committerCH Chethan Reddy <40890937+Chethan2k1@users.noreply.github.com>2020-08-09 08:35:15 +0530
commit2e20049b3695d0aa7ca09db079bcc39c0485d098 (patch)
tree664dfdabdd940f217fac4d55c55e9f47358036ee /src/timeline/EventStore.h
parentAdd Room Verification Messages (diff)
downloadnheko-2e20049b3695d0aa7ca09db079bcc39c0485d098.tar.xz
[WIP] Room-Verification Messages
Diffstat (limited to 'src/timeline/EventStore.h')
-rw-r--r--src/timeline/EventStore.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/timeline/EventStore.h b/src/timeline/EventStore.h
index b5c17d10..28d46e90 100644
--- a/src/timeline/EventStore.h
+++ b/src/timeline/EventStore.h
@@ -98,6 +98,8 @@ signals:
         void processPending();
         void messageSent(std::string txn_id, std::string event_id);
         void messageFailed(std::string txn_id);
+        void startDMVerification(
+          mtx::events::RoomEvent<mtx::events::msg::KeyVerificationRequest> &msg);
 
 public slots:
         void addPending(mtx::events::collections::TimelineEvents event);
@@ -118,4 +120,10 @@ private:
 
         std::string current_txn;
         int current_txn_error_count = 0;
+
+        // probably not the best way to do
+        std::optional<mtx::events::RoomEvent<mtx::events::msg::KeyVerificationRequest>>
+          last_verification_request_event;
+        mtx::events::RoomEvent<mtx::events::msg::KeyVerificationCancel>
+          last_verification_cancel_event;
 };