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

Commit 3045c3f

Browse files
committed
Make alt text more friendly when custom reaction doesn't have shortcode
Signed-off-by: Sumner Evans <sumner@beeper.com>
1 parent f7d7a8c commit 3045c3f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/views/messages/ReactionsRowButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export default class ReactionsRowButton extends React.PureComponent<IProps, ISta
148148
reactionContent = (
149149
<img
150150
className="mx_ReactionsRowButton_content"
151-
alt={customReactionName || content}
151+
alt={customReactionName || _t("Custom reaction")}
152152
src={imageSrc}
153153
width="16"
154154
height="16"

src/i18n/strings/en_EN.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2483,6 +2483,7 @@
24832483
"Add reaction": "Add reaction",
24842484
"Reactions": "Reactions",
24852485
"%(reactors)s reacted with %(content)s": "%(reactors)s reacted with %(content)s",
2486+
"Custom reaction": "Custom reaction",
24862487
"<reactors/><reactedWith>reacted with %(shortName)s</reactedWith>": "<reactors/><reactedWith>reacted with %(shortName)s</reactedWith>",
24872488
"Message deleted on %(date)s": "Message deleted on %(date)s",
24882489
"%(senderDisplayName)s changed the avatar for %(roomName)s": "%(senderDisplayName)s changed the avatar for %(roomName)s",

0 commit comments

Comments
 (0)