diff --git a/src/components/views/messages/ReactionsRowButtonTooltip.js b/src/components/views/messages/ReactionsRowButtonTooltip.js index 394812fd38..b70724d516 100644 --- a/src/components/views/messages/ReactionsRowButtonTooltip.js +++ b/src/components/views/messages/ReactionsRowButtonTooltip.js @@ -46,7 +46,7 @@ export default class ReactionsRowButtonTooltip extends React.PureComponent { const { name } = room.getMember(reactionEvent.getSender()); senders.push(name); } - const shortName = unicodeToShortcode(content) || content; + const shortName = unicodeToShortcode(content); tooltipLabel =
{_t( "reacted with %(shortName)s", { @@ -59,6 +59,9 @@ export default class ReactionsRowButtonTooltip extends React.PureComponent {
; }, reactedWith: (sub) => { + if (!shortName) { + return null; + } return
{sub}
;