From 319ed3a7763e22fb1b1cd227942957a4db925070 Mon Sep 17 00:00:00 2001
From: Robin <robin@robin.town>
Date: Fri, 4 Mar 2022 18:35:28 -0500
Subject: [PATCH] Fix missing summary text for pinned message changes (#7989)

Signed-off-by: Robin Townsend <robin@robin.town>
---
 src/components/views/elements/EventListSummary.tsx | 4 ++--
 src/i18n/strings/en_EN.json                        | 7 ++++---
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/components/views/elements/EventListSummary.tsx b/src/components/views/elements/EventListSummary.tsx
index 82f1e64a43..748c3b353b 100644
--- a/src/components/views/elements/EventListSummary.tsx
+++ b/src/components/views/elements/EventListSummary.tsx
@@ -327,14 +327,14 @@ export default class EventListSummary extends React.Component<IProps> {
                 break;
             case TransitionType.ChangedPins:
                 res = (userCount > 1)
-                    ? _t("%(severalUsers)schanged the <a>pinned messages</a> for the room %(count)s times.",
+                    ? _t("%(severalUsers)schanged the <a>pinned messages</a> for the room %(count)s times",
                         { severalUsers: "", count },
                         {
                             "a": (sub) => <AccessibleButton kind='link_inline' onClick={onPinnedMessagesClick}>
                                 { sub }
                             </AccessibleButton>,
                         })
-                    : _t("%(oneUser)schanged the <a>pinned messages</a> for the room %(count)s times.",
+                    : _t("%(oneUser)schanged the <a>pinned messages</a> for the room %(count)s times",
                         { oneUser: "", count },
                         {
                             "a": (sub) => <AccessibleButton kind='link_inline' onClick={onPinnedMessagesClick}>
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json
index d146cc5ba1..3158f35d04 100644
--- a/src/i18n/strings/en_EN.json
+++ b/src/i18n/strings/en_EN.json
@@ -2301,9 +2301,10 @@
     "%(severalUsers)schanged the server ACLs %(count)s times|one": "%(severalUsers)schanged the server ACLs",
     "%(oneUser)schanged the server ACLs %(count)s times|other": "%(oneUser)schanged the server ACLs %(count)s times",
     "%(oneUser)schanged the server ACLs %(count)s times|one": "%(oneUser)schanged the server ACLs",
-    "%(severalUsers)schanged the <a>pinned messages</a> for the room %(count)s times.|other": "%(severalUsers)schanged the <a>pinned messages</a> for the room %(count)s times.",
-    "%(severalUsers)schanged the <a>pinned messages</a> for the room %(count)s times.|one": "%(severalUsers)schanged the <a>pinned messages</a> for the room.",
-    "%(oneUser)schanged the <a>pinned messages</a> for the room %(count)s times.|other": "%(oneUser)schanged the <a>pinned messages</a> for the room %(count)s times.",
+    "%(severalUsers)schanged the <a>pinned messages</a> for the room %(count)s times|other": "%(severalUsers)schanged the <a>pinned messages</a> for the room %(count)s times",
+    "%(severalUsers)schanged the <a>pinned messages</a> for the room %(count)s times|one": "%(severalUsers)schanged the <a>pinned messages</a> for the room",
+    "%(oneUser)schanged the <a>pinned messages</a> for the room %(count)s times|other": "%(oneUser)schanged the <a>pinned messages</a> for the room %(count)s times",
+    "%(oneUser)schanged the <a>pinned messages</a> for the room %(count)s times|one": "%(oneUser)schanged the <a>pinned messages</a> for the room",
     "%(severalUsers)sremoved a message %(count)s times|other": "%(severalUsers)sremoved %(count)s messages",
     "%(severalUsers)sremoved a message %(count)s times|one": "%(severalUsers)sremoved a message",
     "%(oneUser)sremoved a message %(count)s times|other": "%(oneUser)sremoved %(count)s messages",