[network/neochat] src/libneochat: Don't check m.room.message in an encrypted room

Tobias Fella <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 79da5ec9126bfbb927246e19f738a64b8a568728 by Tobias Fella, on behalf of Joshua Goins.
Committed on 17/07/2026 at 13:46.
Pushed by tfella into branch 'master'.

Don't check m.room.message in an encrypted room

We need to check m.room.encrypted instead I guess.

BUG: 523143
FIXED-IN: 26.08

M  +3    -0    src/libneochat/neochatroom.cpp

https://invent.kde.org/network/neochat/-/commit/79da5ec9126bfbb927246e19f738a64b8a568728

diff --git a/src/libneochat/neochatroom.cpp b/src/libneochat/neochatroom.cpp
index 4903a7b8b..5c4f5e9b2 100644
--- a/src/libneochat/neochatroom.cpp
+++ b/src/libneochat/neochatroom.cpp
@@ -599,6 +599,9 @@ bool NeoChatRoom::isInvite() const
 
 bool NeoChatRoom::readOnly() const
 {
+    if (usesEncryption()) {
+        return !canSendEvent("m.room.encrypted"_L1);
+    }
     return !canSendEvent("m.room.message"_L1);
 }
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.