[network/ruqola] src/core/messages: Fix copy data

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit c0ad799ce93f0e99c87ede9da785c9a392aa62c1 by Laurent Montel.
Committed on 04/08/2026 at 05:42.
Pushed by mlaurent into branch 'master'.

Fix copy data

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

https://invent.kde.org/network/ruqola/-/commit/c0ad799ce93f0e99c87ede9da785c9a392aa62c1

diff --git a/src/core/messages/messageencrypted.cpp b/src/core/messages/messageencrypted.cpp
index b871c54271..57a7ee407e 100644
--- a/src/core/messages/messageencrypted.cpp
+++ b/src/core/messages/messageencrypted.cpp
@@ -20,6 +20,10 @@ MessageEncrypted::MessageEncrypted(const MessageEncrypted &other)
     : QSharedData(other)
 {
     qCDebug(RUQOLA_ENCRYPTION_LOG) << " MessageEncrypted created " << this;
+    mAlgorithm = other.algorithm();
+    mKeyId = other.keyId();
+    mCiphertext = other.ciphertext();
+    mIv = other.iv();
 }
 
 MessageEncrypted::~MessageEncrypted()
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.