[network/ruqola] src/core/messages: Add parse element

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 19e1b78746e246e7ac6afb7580c20e033884e11c by Laurent Montel.
Committed on 03/08/2026 at 11:39.
Pushed by mlaurent into branch 'master'.

Add parse element

M  +4    -1    src/core/messages/messageencrypted.cpp

https://invent.kde.org/network/ruqola/-/commit/19e1b78746e246e7ac6afb7580c20e033884e11c

diff --git a/src/core/messages/messageencrypted.cpp b/src/core/messages/messageencrypted.cpp
index e2fd19d29b..40b8c8080a 100644
--- a/src/core/messages/messageencrypted.cpp
+++ b/src/core/messages/messageencrypted.cpp
@@ -80,7 +80,10 @@ bool MessageEncrypted::operator==(const MessageEncrypted &other) const
 
 void MessageEncrypted::parse(const QJsonObject &o)
 {
-    // TODO
+    mAlgorithm = o["algorithm"_L1].toString().toLatin1();
+    mCiphertext = o["ciphertext"_L1].toString();
+    mIv = o["iv"_L1].toString().toLatin1();
+    mKeyId = o["kid"_L1].toString().toLatin1();
 }
 
 QJsonObject MessageEncrypted::serialize(const MessageEncrypted &messagePinned)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.