pl-fe: allow using system emoji font

Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
This commit is contained in:
Nicole Mikołajczyk
2025-05-23 19:01:48 +02:00
parent e7e0e964af
commit 6d0116292e
7 changed files with 36 additions and 15 deletions

View File

@@ -13,7 +13,7 @@ interface IEmoji extends Pick<React.ImgHTMLAttributes<HTMLImageElement>, 'alt' |
/** A single emoji image. */
const Emoji: React.FC<IEmoji> = (props): JSX.Element | null => {
const { disableUserProvidedMedia } = useSettings();
const { disableUserProvidedMedia, systemEmojiFont } = useSettings();
const { emoji, alt, src, noGroup, ...rest } = props;
let filename;
@@ -39,6 +39,8 @@ const Emoji: React.FC<IEmoji> = (props): JSX.Element | null => {
);
}
if (systemEmojiFont) return <>{emoji}</>;
return (
<img
draggable='false'