[network/ruqola] src/widgets/room/delegate: Don't show mReplyInThreadIcon for encrypted message

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

Don't show mReplyInThreadIcon for encrypted message

M  +4    -2    src/widgets/room/delegate/messagelistdelegate.cpp

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

diff --git a/src/widgets/room/delegate/messagelistdelegate.cpp b/src/widgets/room/delegate/messagelistdelegate.cpp
index 62996f8ed0..4103ac0012 100644
--- a/src/widgets/room/delegate/messagelistdelegate.cpp
+++ b/src/widgets/room/delegate/messagelistdelegate.cpp
@@ -737,9 +737,11 @@ void MessageListDelegate::paint(QPainter *painter, const QStyleOptionViewItem &o
     // drawFocus(painter, option, messageRect);
 
     // debug painter->drawRect(option.rect.adjusted(0, 0, -1, -1));
-    if (!isSystemMessage(message) && !message->isEncryptedMessage() && message->hoverHighlight() && mEmojiMenuEnabled) {
+    if (!isSystemMessage(message) && message->hoverHighlight() && mEmojiMenuEnabled) {
         mAddReactionIcon.paint(painter, layout.addReactionRect, Qt::AlignCenter);
-        mReplyInThreadIcon.paint(painter, layout.replyToThreadRect, Qt::AlignCenter);
+        if (!message->isEncryptedMessage()) {
+            mReplyInThreadIcon.paint(painter, layout.replyToThreadRect, Qt::AlignCenter);
+        }
 #if HAVE_TEXT_TO_SPEECH
         if (RuqolaGlobalConfig::self()->enableTextToSpeech()) {
             mTextToSpeechIcon.paint(painter, layout.textToSpeechIconRect, Qt::AlignCenter);
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.