Add context menu action to request encryption keys

This commit is contained in:
Konstantinos Sideris 2018-07-07 23:59:23 +03:00
parent 9a0e18dea7
commit 278eccc040
7 changed files with 312 additions and 10 deletions

View file

@ -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

View file

@ -241,6 +241,7 @@ public:
//! Add a user avatar for this event.
void addAvatar();
void addKeyRequestAction();
signals:
void eventRedacted(const QString &event_id);