[network/ruqola] src/core/encryption: const'ify method

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

const'ify method

M  +1    -1    src/core/encryption/e2ekeymanager.cpp
M  +1    -1    src/core/encryption/e2ekeymanager.h

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

diff --git a/src/core/encryption/e2ekeymanager.cpp b/src/core/encryption/e2ekeymanager.cpp
index a5c9ba6370..63b13b3fbc 100644
--- a/src/core/encryption/e2ekeymanager.cpp
+++ b/src/core/encryption/e2ekeymanager.cpp
@@ -573,7 +573,7 @@ E2eKeyManager::Status E2eKeyManager::needToDecodeEncryptionKey() const
     return Status::Unknown;
 }
 
-bool E2eKeyManager::decryptRoomsSessionKeys()
+bool E2eKeyManager::decryptRoomsSessionKeys() const
 {
 #if USE_E2E_SUPPORT
     if (mDecodedPrivateKey.isEmpty()) {
diff --git a/src/core/encryption/e2ekeymanager.h b/src/core/encryption/e2ekeymanager.h
index cf07cdda19..e71e0c33eb 100644
--- a/src/core/encryption/e2ekeymanager.h
+++ b/src/core/encryption/e2ekeymanager.h
@@ -49,7 +49,7 @@ public:
     void setKeySaved(bool newKeySaved);
 
     void verifyExistingKeyForTest(const QJsonObject &json);
-    [[nodiscard]] bool decryptRoomsSessionKeys();
+    [[nodiscard]] bool decryptRoomsSessionKeys() const;
 
 Q_SIGNALS:
     void needDecodeEncryptionKey();
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.