summary refs log tree commit diff
path: root/src/CacheCryptoStructs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/CacheCryptoStructs.h')
-rw-r--r--src/CacheCryptoStructs.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/CacheCryptoStructs.h b/src/CacheCryptoStructs.h
index 22c7bcf0..11644a2b 100644
--- a/src/CacheCryptoStructs.h
+++ b/src/CacheCryptoStructs.h
@@ -11,10 +11,13 @@
 #include <mutex>
 #include <set>
 
-#include <mtx/events/encrypted.hpp>
 #include <mtx/responses/crypto.hpp>
 #include <mtxclient/crypto/objects.hpp>
 
+namespace mtx::events::msg {
+struct Encrypted;
+}
+
 namespace crypto {
 Q_NAMESPACE
 QML_NAMED_ELEMENT(Crypto)
@@ -96,11 +99,7 @@ from_json(const nlohmann::json &obj, DevicePublicKeys &msg);
 struct MegolmSessionIndex
 {
     MegolmSessionIndex() = default;
-    MegolmSessionIndex(std::string room_id_, const mtx::events::msg::Encrypted &e)
-      : room_id(std::move(room_id_))
-      , session_id(e.session_id)
-    {
-    }
+    MegolmSessionIndex(std::string room_id_, const mtx::events::msg::Encrypted &e);
 
     //! The room in which this session exists.
     std::string room_id;