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

Joshua Goins <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit bbe499c7fba45cd8c2beaa5696b541be7a8e3e1c by Joshua Goins.
Committed on 24/07/2026 at 20:14.
Pushed by redstrate into branch 'release/26.08'.

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
(cherry picked from commit 79da5ec9126bfbb927246e19f738a64b8a568728)

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

https://invent.kde.org/network/neochat/-/commit/bbe499c7fba45cd8c2beaa5696b541be7a8e3e1c

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.