mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 01:16:19 +00:00
This avoids the type narrowing problem when we call "is_unicode_emoji" on an emoji object and access "emoji.emoji_code", which might be "undefined". In places where these helpers are accessed, we expect that "reaction_type" is always present so that we can later correctly type narrow Emoji into UnicodeEmoji. This updates the test cases to respect that. Signed-off-by: Zixuan James Li <p359101898@gmail.com>