Emoji Rendering (#35424)

This commit is contained in:
Echo
2025-07-22 16:43:15 +02:00
committed by GitHub
parent 0af2c4829f
commit 760d00b7f7
25 changed files with 1064 additions and 70 deletions

View File

@@ -4,7 +4,7 @@ import { Globals } from '@react-spring/web';
import { setupBrowserNotifications } from 'mastodon/actions/notifications';
import Mastodon from 'mastodon/containers/mastodon';
import { me, reduceMotion } from 'mastodon/initial_state';
import { isFeatureEnabled, me, reduceMotion } from 'mastodon/initial_state';
import * as perf from 'mastodon/performance';
import ready from 'mastodon/ready';
import { store } from 'mastodon/store';
@@ -29,6 +29,11 @@ function main() {
});
}
if (isFeatureEnabled('modern_emojis')) {
const { initializeEmoji } = await import('@/mastodon/features/emoji');
await initializeEmoji();
}
const root = createRoot(mountNode);
root.render(<Mastodon {...props} />);
store.dispatch(setupBrowserNotifications());