Force modern emoji experimental to be dev mode only (#35505)

This commit is contained in:
Echo authored and GitHub committed 2025-07-24 14:55:00 +00:00
1 parent 6fc77a545b
commit dfaca794bf
6 files changed
+26 -19

No files matched your search

@@ -5,8 +5,8 @@ import type { List as ImmutableList } from 'immutable';
import { isList } from 'immutable';
import type { ApiCustomEmojiJSON } from '@/mastodon/api_types/custom_emoji';
import { isFeatureEnabled } from '@/mastodon/initial_state';
import type { CustomEmoji } from '@/mastodon/models/custom_emoji';
import { isModernEmojiEnabled } from '@/mastodon/utils/environment';
import { useEmojiAppState } from './hooks';
import { emojifyElement } from './render';
@@ -25,7 +25,7 @@ export const EmojiHTML: React.FC<EmojiHTMLProps> = ({
extraEmojis,
...props
}) => {
if (isFeatureEnabled('modern_emojis')) {
if (isModernEmojiEnabled()) {
return (
<ModernEmojiHTML
htmlString={htmlString}