emoji: Fix checks for whether custom emoji may override default.

This commit is contained in:
N-Shar-ma 2023-01-20 21:19:59 +05:30 committed by Tim Abbott
parent 970071e3bd
commit c519c31bda
1 changed files with 3 additions and 1 deletions

View File

@ -70,7 +70,9 @@ function sort_author_full_name(a, b) {
}
function is_default_emoji(emoji_name) {
return emoji_codes.names.includes(emoji_name);
// Spaces are replaced with `_` to match how the emoji name will
// actually be stored in the backend.
return emoji_codes.names.includes(emoji_name.replace(/ /g, "_"));
}
function is_custom_emoji(emoji_name) {