aboutsummaryrefslogtreecommitdiff
path: root/lib/e2ee/qolmmessage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/e2ee/qolmmessage.cpp')
-rw-r--r--lib/e2ee/qolmmessage.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/e2ee/qolmmessage.cpp b/lib/e2ee/qolmmessage.cpp
index 81b166b0..f9b4a5c2 100644
--- a/lib/e2ee/qolmmessage.cpp
+++ b/lib/e2ee/qolmmessage.cpp
@@ -4,6 +4,8 @@
#include "qolmmessage.h"
+#include "util.h"
+
using namespace Quotient;
QOlmMessage::QOlmMessage(QByteArray ciphertext, QOlmMessage::Type type)
@@ -26,7 +28,7 @@ QOlmMessage::Type QOlmMessage::type() const
QByteArray QOlmMessage::toCiphertext() const
{
- return QByteArray(*this);
+ return SLICE(*this, QByteArray);
}
QOlmMessage QOlmMessage::fromCiphertext(const QByteArray &ciphertext)