summary refs log tree commit diff
path: root/src/MxcImageProvider.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/MxcImageProvider.h')
-rw-r--r--src/MxcImageProvider.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/MxcImageProvider.h b/src/MxcImageProvider.h
index 5c3e5c58..3ee67fc5 100644
--- a/src/MxcImageProvider.h
+++ b/src/MxcImageProvider.h
@@ -11,7 +11,9 @@
 
 #include <functional>
 
-#include <mtx/common.hpp>
+namespace mtx::crypto {
+struct EncryptedFile;
+}
 
 class MxcImageRunnable final : public QObject
 {
@@ -81,7 +83,7 @@ public slots:
     QQuickImageResponse *
     requestImageResponse(const QString &id, const QSize &requestedSize) override;
 
-    static void addEncryptionInfo(mtx::crypto::EncryptedFile info);
+    static void addEncryptionInfo(const mtx::crypto::EncryptedFile &info);
     static void download(const QString &id,
                          const QSize &requestedSize,
                          std::function<void(QString, QSize, QImage, QString)> then,