2 files changed, 17 insertions, 0 deletions
diff --git a/include/Olm.hpp b/include/Olm.hpp
index 58568081..2730b18c 100644
--- a/include/Olm.hpp
+++ b/include/Olm.hpp
@@ -67,4 +67,20 @@ encrypt_group_message(const std::string &room_id,
void
mark_keys_as_published();
+//! Request the encryption keys from sender's device for the given event.
+void
+request_keys(const std::string &room_id, const std::string &event_id);
+
+void
+send_key_request_for(const std::string &room_id,
+ const mtx::events::EncryptedEvent<mtx::events::msg::Encrypted> &);
+
+void
+handle_key_request_message(const mtx::events::msg::KeyRequest &);
+
+void
+send_megolm_key_to_device(const std::string &user_id,
+ const std::string &device_id,
+ const json &payload);
+
} // namespace olm
diff --git a/include/timeline/TimelineItem.h b/include/timeline/TimelineItem.h
index 95d4be3d..d3cab0a0 100644
--- a/include/timeline/TimelineItem.h
+++ b/include/timeline/TimelineItem.h
@@ -241,6 +241,7 @@ public:
//! Add a user avatar for this event.
void addAvatar();
+ void addKeyRequestAction();
signals:
void eventRedacted(const QString &event_id);
|