mirror of https://github.com/vector-im/riot-web
Merge pull request #3003 from matrix-org/jryans/hide-fallback-emoji
Remove reacted with text when shortcode missingpull/21833/head
commit
2e052c925c
|
@ -46,7 +46,7 @@ export default class ReactionsRowButtonTooltip extends React.PureComponent {
|
||||||
const { name } = room.getMember(reactionEvent.getSender());
|
const { name } = room.getMember(reactionEvent.getSender());
|
||||||
senders.push(name);
|
senders.push(name);
|
||||||
}
|
}
|
||||||
const shortName = unicodeToShortcode(content) || content;
|
const shortName = unicodeToShortcode(content);
|
||||||
tooltipLabel = <div>{_t(
|
tooltipLabel = <div>{_t(
|
||||||
"<reactors/><reactedWith>reacted with %(shortName)s</reactedWith>",
|
"<reactors/><reactedWith>reacted with %(shortName)s</reactedWith>",
|
||||||
{
|
{
|
||||||
|
@ -59,6 +59,9 @@ export default class ReactionsRowButtonTooltip extends React.PureComponent {
|
||||||
</div>;
|
</div>;
|
||||||
},
|
},
|
||||||
reactedWith: (sub) => {
|
reactedWith: (sub) => {
|
||||||
|
if (!shortName) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
return <div className="mx_ReactionsRowButtonTooltip_reactedWith">
|
return <div className="mx_ReactionsRowButtonTooltip_reactedWith">
|
||||||
{sub}
|
{sub}
|
||||||
</div>;
|
</div>;
|
||||||
|
|
Loading…
Reference in New Issue