mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
This allows us to import typeahead from people.ts with types. This is possible since #22586 was merged. And since "sort_emojis" is always supposed to be called with valid emoji objects that have "reaction_type" with an optional "emoji_code", we add a check before we see if the emoji is popular to avoid poking popular_set with an undefined value. Signed-off-by: Zixuan James Li <p359101898@gmail.com>