zulip/frontend_tests/node_tests
Steve Howell 98529564ae reactions: Handle missing realm emojis.
For the lines of code that I changed here, we were
getting field reports that the below code
was getting `undefined`:

    emoji.all_realm_emojis.get(r.emoji_code)

It's not really clear to me how this could happen,
but we definitely should fail softly here.  We
still report it as an error, but we let the function
return and don't trigger a TypeError.

If there's a legitimate reason for realms to delete
realm emojis, we should either downgrade this to a
warning or consider a strategy of back-fixing messages
when realm emojis get deleted.
2020-10-06 17:22:54 -07:00
..
lib events: Add op field to update_message_flags events. 2020-08-24 12:42:03 -07:00
activity.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
alert_words_ui.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
alert_words.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
billing_helpers.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
billing.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
blueslip_stacktrace.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
bot_data.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
buddy_data.js buddy_data: Rename my_user_status() to get_my_user_status(). 2020-09-25 15:12:33 -07:00
buddy_list.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
channel.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
color_data.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
colorspace.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
common.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
components.js toggler: Allow skipping over disabled tabs. 2020-08-04 15:48:34 -07:00
compose_actions.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
compose_fade.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
compose_pm_pill.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
compose_ui.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
compose.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
composebox_typeahead.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
copy_and_paste.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
dispatch_subs.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
dispatch.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
drafts.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
dropdown_list_widget.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
echo.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
emoji_picker.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
emoji.js js: Elide .js and .ts extensions from imports and requires. 2020-09-01 16:43:02 -07:00
fenced_code.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
fetch_status.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
filter.js docs: Adjust spelling s/back end/backend/. 2020-09-18 16:39:28 -07:00
fold_dict.js js: Use destructuring for require statements. 2020-09-23 09:06:07 -04:00
general.js notifications: Rename window_has_focus variable and function. 2020-09-25 15:12:24 -07:00
hash_util.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
hashchange.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
hotkey.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
i18n.js message_actions: Help user identify quote can be used for forwarding. 2020-08-31 15:36:16 -07:00
input_pill.js docs: Fix capitalization of keyboard keys. 2020-08-11 10:25:53 -07:00
keydown_util.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
lazy_set.js js: Use destructuring for require statements. 2020-09-23 09:06:07 -04:00
lightbox.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
list_cursor.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
list_render.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
markdown_katex.js js: Use unminified KaTeX (and minifiy it with everything else). 2020-08-07 11:27:44 -07:00
markdown.js markdown: bugfix: Fix importing pygments data for codeblock header creation. 2020-09-28 15:39:31 -07:00
message_edit.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
message_events.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
message_fetch.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
message_flags.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
message_list_data.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
message_list_view.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
message_list.js js: Use destructuring for require statements. 2020-09-23 09:06:07 -04:00
message_store.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
muting.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
narrow_activate.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
narrow_local.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
narrow_state.js narrow_state: Remove stream_id(). 2020-09-25 15:12:24 -07:00
narrow_unread.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
narrow.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
notifications.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
password.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
people_errors.js js: Convert people module to ES6. 2020-09-01 19:55:58 -07:00
people.js js: Convert people module to ES6. 2020-09-01 19:55:58 -07:00
pm_conversations.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
pm_list.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
poll_widget.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
popovers.js popover: Add "Copy mention syntax" option for non-message user popovers. 2020-09-22 15:42:53 -07:00
presence.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
reactions.js reactions: Handle missing realm emojis. 2020-10-06 17:22:54 -07:00
recent_senders.js recent_topics: Test deleting messages not stored locally. 2020-09-15 17:03:27 -07:00
recent_topics.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
rendered_markdown.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
rtl.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
schema.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
scroll_util.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
search_legacy.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
search_pill.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
search_suggestion_legacy.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
search_suggestion.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
search.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
server_events.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_bots.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_data.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_emoji.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_muting.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
settings_org.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
settings_profile_fields.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_user_groups.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
spoilers.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
stream_data.js stream_data: Rename sub.is_admin to sub.is_realm_admin. 2020-09-14 22:05:31 -07:00
stream_edit.js js: Use destructuring for require statements. 2020-09-23 09:06:07 -04:00
stream_events.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
stream_list.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
stream_pill.js stream edit: Allow creating stream pills when typeahead is unused. 2020-08-31 16:57:32 -07:00
stream_search.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
stream_sort.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
stream_topic_history.js stream_topic_history: Update max msg id of stream post msg deletion. 2020-08-04 15:29:03 -07:00
submessage.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
subs.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
support.js support: Confirm the string_id before scrubbing the realm. 2020-09-28 15:37:49 -07:00
timerender.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
top_left_corner.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
topic_generator.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
topic_list_data.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
transmit.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
typeahead_helper.js js: Use destructuring for require statements. 2020-09-23 09:06:07 -04:00
typeahead.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
typing_data.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
typing_status.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
ui_init.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
ui.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
unread.js eslint: Replace empty-returns with consistent-return. 2020-09-25 15:17:59 -07:00
upgrade.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
upload.js compose: Fix auto-resize issue on uploading files in preview mode. 2020-09-21 15:40:12 -07:00
user_events.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
user_groups.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
user_pill.js js: Purge people module from window. 2020-09-01 19:55:58 -07:00
user_status.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
util.js node tests: Prevent theoretical leak from Intl. 2020-09-02 13:45:03 -04:00
vdom.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
widgetize.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
zblueslip.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
zjquery.js docs: Fix spelling errors caught by codespell. 2020-08-11 10:23:06 -07:00