Allow modern_emojis to be enabled purely server-side (#36342)

This commit is contained in:
Echo 2025-10-06 15:34:51 +02:00 committed by GitHub
parent ffac4cb05f
commit 68a36d5a57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,10 +20,7 @@ export function isFeatureEnabled(feature: Features) {
export function isModernEmojiEnabled() { export function isModernEmojiEnabled() {
try { try {
return ( return isFeatureEnabled('modern_emojis');
isFeatureEnabled('modern_emojis') &&
localStorage.getItem('experiments')?.split(',').includes('modern_emojis')
);
} catch { } catch {
return false; return false;
} }