emoji_setup_utils: Add 'get_extended_names_list()` function.

This commit is contained in:
Harshit Bansal 2017-10-01 13:53:53 +00:00 committed by Tim Abbott
parent 95b17217b2
commit f6e113a8a3
1 changed files with 7 additions and 0 deletions

View File

@ -287,3 +287,10 @@ def get_new_emoji_dicts(unified_reactions_data, emoji_data):
if emoji_can_be_included(emoji_dict, unified_reactions_codepoints):
new_emoji_dicts.append(emoji_dict)
return new_emoji_dicts
def get_extended_names_list(names, new_emoji_dicts):
# type: (List[Text], List[Dict[Text, Any]]) -> List[Text]
extended_names_list = names[:]
for emoji_dict in new_emoji_dicts:
extended_names_list.append(emoji_dict["short_name"])
return extended_names_list