Skip to content

Commit

Permalink
Use different copy for outgoing gift badges
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnonnenberg-signal committed Jun 23, 2022
1 parent 6b23134 commit 7b1721b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2716,10 +2716,14 @@
"message": "This message was deleted.",
"description": "Shown in a message's bubble when the message has been deleted for everyone."
},
"message--giftBadge--unopened": {
"message--giftBadge--unopened--incoming": {
"message": "View this message on mobile to open it",
"description": "Shown in a message's bubble when you've received a gift badge from a contact"
},
"message--giftBadge--unopened--outgoing": {
"message": "Tap this message on mobile to view your gift",
"description": "Shown in a message's bubble when you've sent a gift badge to a contact"
},
"message--giftBadge--unopened--label": {
"message": "Gift",
"description": "Shown in a message's bubble when you've received a gift badge from a contact"
Expand Down
2 changes: 1 addition & 1 deletion ts/components/conversation/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@ export class Message extends React.PureComponent<Props, State> {
}

if (giftBadge.state === GiftBadgeStates.Unopened) {
const description = i18n('message--giftBadge--unopened');
const description = i18n(`message--giftBadge--unopened--${direction}`);
const isRTL = getDirection(description) === 'rtl';
const { metadataWidth } = this.state;

Expand Down

0 comments on commit 7b1721b

Please sign in to comment.