aboutsummaryrefslogtreecommitdiff
path: root/lib/events/encryptedevent.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-11-26 13:46:58 +0100
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-11-26 13:46:58 +0100
commitf4a0acf818c4c89d132b2ec96d47c5817b106149 (patch)
treea76625dce0ce620a1a54f5a76978da3d290bfd0b /lib/events/encryptedevent.h
parentf6155d62740a88b020273ba623c816f7b9805772 (diff)
downloadlibquotient-f4a0acf818c4c89d132b2ec96d47c5817b106149.tar.gz
libquotient-f4a0acf818c4c89d132b2ec96d47c5817b106149.zip
Drop #include "logging.h" from event.h
Makes compilation a tad lighter.
Diffstat (limited to 'lib/events/encryptedevent.h')
-rw-r--r--lib/events/encryptedevent.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/events/encryptedevent.h b/lib/events/encryptedevent.h
index 598829cd..d2b71785 100644
--- a/lib/events/encryptedevent.h
+++ b/lib/events/encryptedevent.h
@@ -37,17 +37,11 @@ public:
/* In case with Megolm, device_id and session_id are required */
explicit EncryptedEvent(QByteArray ciphertext, const QString& senderKey,
const QString& deviceId, const QString& sessionId);
- explicit EncryptedEvent(const QJsonObject& obj);
+ explicit EncryptedEvent(const QJsonObject& obj)
+ : RoomEvent(typeId(), obj)
+ {}
- QString algorithm() const
- {
- QString algo = content<QString>(AlgorithmKeyL);
- if (!SupportedAlgorithms.contains(algo)) {
- qWarning(MAIN) << "The EncryptedEvent's algorithm" << algo
- << "is not supported";
- }
- return algo;
- }
+ QString algorithm() const;
QByteArray ciphertext() const
{
return content<QString>(CiphertextKeyL).toLatin1();