Use different copy for outgoing gift badges
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
parent
73ea7ad1ad
commit
8c5a5e7402
|
@ -2719,10 +2719,14 @@
|
||||||
"message": "This message was deleted.",
|
"message": "This message was deleted.",
|
||||||
"description": "Shown in a message's bubble when the message has been deleted for everyone."
|
"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",
|
"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"
|
"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--giftBadge--unopened--label": {
|
||||||
"message": "Gift",
|
"message": "Gift",
|
||||||
"description": "Shown in a message's bubble when you've received a gift badge from a contact"
|
"description": "Shown in a message's bubble when you've received a gift badge from a contact"
|
||||||
|
|
|
@ -1281,7 +1281,7 @@ export class Message extends React.PureComponent<Props, State> {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (giftBadge.state === GiftBadgeStates.Unopened) {
|
if (giftBadge.state === GiftBadgeStates.Unopened) {
|
||||||
const description = i18n('message--giftBadge--unopened');
|
const description = i18n(`message--giftBadge--unopened--${direction}`);
|
||||||
const isRTL = getDirection(description) === 'rtl';
|
const isRTL = getDirection(description) === 'rtl';
|
||||||
const { metadataWidth } = this.state;
|
const { metadataWidth } = this.state;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue