[network/ruqola] src/widgets/room: Exclude thread action for encrypted message

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

Exclude thread action for encrypted message

M  +9    -7    src/widgets/room/messagelistview.cpp

https://invent.kde.org/network/ruqola/-/commit/3b349fb0dcf47d9a3c44395adf3230dc71fca5b7

diff --git a/src/widgets/room/messagelistview.cpp b/src/widgets/room/messagelistview.cpp
index e6099bb9e7..f5e47938e3 100644
--- a/src/widgets/room/messagelistview.cpp
+++ b/src/widgets/room/messagelistview.cpp
@@ -604,13 +604,15 @@ void MessageListView::contextMenuEvent(QContextMenuEvent *event)
             });
             menu.addAction(startDiscussion);
             menu.addSeparator();
-            auto replyInThreadAction = new QAction(QIcon::fromTheme(u"mail-replied-symbolic"_s), i18nc("@action", "Reply in Thread"), &menu);
-            connect(replyInThreadAction, &QAction::triggered, this, [this, index]() {
-                slotReplyInThread(index);
-            });
-            menu.addAction(replyInThreadAction);
-            for (auto action : std::as_const(threadInfoActions)) {
-                menu.addAction(action);
+            if (!message->isEncryptedMessage()) {
+                auto replyInThreadAction = new QAction(QIcon::fromTheme(u"mail-replied-symbolic"_s), i18nc("@action", "Reply in Thread"), &menu);
+                connect(replyInThreadAction, &QAction::triggered, this, [this, index]() {
+                    slotReplyInThread(index);
+                });
+                menu.addAction(replyInThreadAction);
+                for (auto action : std::as_const(threadInfoActions)) {
+                    menu.addAction(action);
+                }
             }
 
             if (!isVideoConferenceMessage) {
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.