Fix action bar emoji labels

This commit is contained in:
Alex Gleason 2022-04-10 16:07:23 -05:00
parent 1466a08193
commit ae48c6e619
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
3 changed files with 4 additions and 2 deletions

Binary file not shown.

View file

@ -578,9 +578,10 @@ class StatusActionBar extends ImmutablePureComponent<IStatusActionBar, IStatusAc
'😮': messages.reactionOpenMouth, '😮': messages.reactionOpenMouth,
'😢': messages.reactionCry, '😢': messages.reactionCry,
'😩': messages.reactionWeary, '😩': messages.reactionWeary,
'': messages.favourite,
}; };
const meEmojiTitle = intl.formatMessage(meEmojiReact ? reactMessages[meEmojiReact] : messages.favourite); const meEmojiTitle = intl.formatMessage(reactMessages[meEmojiReact || ''] || messages.favourite);
const menu = this._makeMenu(publicStatus); const menu = this._makeMenu(publicStatus);
let reblogIcon = require('@tabler/icons/icons/repeat.svg'); let reblogIcon = require('@tabler/icons/icons/repeat.svg');

View file

@ -355,9 +355,10 @@ class ActionBar extends React.PureComponent<IActionBar, IActionBarState> {
'😮': messages.reactionOpenMouth, '😮': messages.reactionOpenMouth,
'😢': messages.reactionCry, '😢': messages.reactionCry,
'😩': messages.reactionWeary, '😩': messages.reactionWeary,
'': messages.favourite,
}; };
const meEmojiTitle = intl.formatMessage(meEmojiReact ? reactMessages[meEmojiReact] : messages.favourite); const meEmojiTitle = intl.formatMessage(reactMessages[meEmojiReact || ''] || messages.favourite);
const menu: Menu = []; const menu: Menu = [];