Emoji: Remove final flag (#36409)

This commit is contained in:
Echo 2025-10-28 12:33:27 +01:00 committed by GitHub
commit 85d0cdb5f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
37 changed files with 112 additions and 1103 deletions

View file

@ -12,16 +12,8 @@ export function isProduction() {
else return import.meta.env.PROD;
}
export type Features = 'modern_emojis' | 'fasp';
export type Features = 'fasp' | 'http_message_signatures';
export function isFeatureEnabled(feature: Features) {
return initialState?.features.includes(feature) ?? false;
}
export function isModernEmojiEnabled() {
try {
return isFeatureEnabled('modern_emojis');
} catch {
return false;
}
}