Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix missing summary text for pinned message changes #7989

Merged
merged 1 commit into from
Mar 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/views/elements/EventListSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}>
Expand Down
7 changes: 4 additions & 3 deletions src/i18n/strings/en_EN.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down