[network/ruqola] src/core/messages: Add missing PinnedE2e system message

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

Add missing PinnedE2e system message

M  +2    -0    src/core/messages/message.cpp
M  +4    -0    src/core/messages/systemmessagetypeutil.cpp
M  +1    -0    src/core/messages/systemmessagetypeutil.h

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

diff --git a/src/core/messages/message.cpp b/src/core/messages/message.cpp
index 265c384792..0f0b6170ff 100644
--- a/src/core/messages/message.cpp
+++ b/src/core/messages/message.cpp
@@ -871,6 +871,8 @@ QString Message::systemMessageText() const
         return i18n("Message Deleted");
     case SystemMessageTypeUtil::SystemMessageType::Pinned:
         return i18n("Message Pinned");
+    case SystemMessageTypeUtil::SystemMessageType::PinnedE2e:
+        return i18n("Message Pinned by %1", mUsername);
     case SystemMessageTypeUtil::SystemMessageType::UserUnmuted:
         return i18n("%1 was unmuted by %2", mText, mUsername);
     case SystemMessageTypeUtil::SystemMessageType::UserMuted:
diff --git a/src/core/messages/systemmessagetypeutil.cpp b/src/core/messages/systemmessagetypeutil.cpp
index 63120bd08f..a10f4616ea 100644
--- a/src/core/messages/systemmessagetypeutil.cpp
+++ b/src/core/messages/systemmessagetypeutil.cpp
@@ -41,6 +41,8 @@ SystemMessageType SystemMessageTypeUtil::systemMessageTypeFromString(const QStri
         return MessageDeleted;
     } else if (str == "message_pinned"_L1) {
         return Pinned;
+    } else if (str == "message_pinned_e2e"_L1) {
+        return PinnedE2e;
     } else if (str == "user-unmuted"_L1) {
         return UserUnmuted;
     } else if (str == "user-muted"_L1) {
@@ -136,6 +138,8 @@ QString SystemMessageTypeUtil::systemMessageTypeStringFromEnum(SystemMessageType
         return "rm"_L1;
     case Pinned:
         return "message_pinned"_L1;
+    case PinnedE2e:
+        return "message_pinned_e2e"_L1;
     case UserUnmuted:
         return "user-unmuted"_L1;
     case UserMuted:
diff --git a/src/core/messages/systemmessagetypeutil.h b/src/core/messages/systemmessagetypeutil.h
index 2ac223aa39..accde43671 100644
--- a/src/core/messages/systemmessagetypeutil.h
+++ b/src/core/messages/systemmessagetypeutil.h
@@ -26,6 +26,7 @@ enum SystemMessageType {
     JitsiCallStarted,
     MessageDeleted,
     Pinned,
+    PinnedE2e,
     UserMuted,
     UserUnmuted,
     SubscriptionRoleAdded,
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.