zulip/web/tests
Sahil Batra 734d1848c0 server_events_dispatch: Update bots list only if needed.
After b21f533af, we now update the organization bots
list on receiving realm_user events since non-admins
can also see bots not owned by them in the list.

But the functions to update bot list should be called
only for bot users and not for others, otherwise it
results in an error.

This can be reproduced by first opening the organization
bots list and then just updating the name of the user.
Calling `redraw_bots_list` on receiving "realm_user/add"
event for non bot users will not raise any error but
still we avoid redrawing the whole list when not required.

This commit fixes the code to call functions to update
bot list only when the event is received for a bot.
2023-03-02 13:26:20 -08:00
..
lib server_events_dispatch: Update bots list only if needed. 2023-03-02 13:26:20 -08:00
templates
activity.test.js
alert_words.test.js
alert_words_ui.test.js
billing.test.js
billing_helpers.test.js
blueslip_stacktrace.test.js
bot_data.test.js
browser_history.test.js
buddy_data.test.js
buddy_list.test.js
channel.test.js
color_data.test.js
colorspace.test.js
common.test.js
components.test.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
compose.test.js private-messages: Update frontend strings to use "direct message" or "DM". 2023-02-24 11:47:26 -08:00
compose_actions.test.js
compose_closed_ui.test.js
compose_fade.test.js
compose_pm_pill.test.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
compose_state.test.js
compose_ui.test.js
compose_validate.test.js
compose_video.test.js
composebox_typeahead.test.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
copy_and_paste.test.js
deprecated_feature_notice.test.js
dispatch.test.js server_events_dispatch: Update bots list only if needed. 2023-03-02 13:26:20 -08:00
dispatch_subs.test.js
drafts.test.js i18n: Localize date and time displays across the app. 2023-02-26 17:43:47 -08:00
dropdown_list_widget.test.js
echo.test.js
emoji.test.js
emoji_picker.test.js
event_status.test.js
example1.test.js
example2.test.js
example3.test.js
example4.test.js server_events_dispatch: Update bots list only if needed. 2023-03-02 13:26:20 -08:00
example5.test.js
example6.test.js
example7.test.js
example8.test.js
fenced_code.test.js
fetch_status.test.js
filter.test.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
fold_dict.test.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
gear_menu.test.js
hash_util.test.js
hashchange.test.js
hotkey.test.js
i18n.test.js
input_pill.test.js
internal_url.test.js
keydown_util.test.js
lazy_set.test.js
lightbox.test.js
linkifiers.test.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
list_cursor.test.js
list_widget.test.js
markdown.test.js
markdown_parse.test.js
message_edit.test.js
message_events.test.js
message_fetch.test.js
message_flags.test.js message_flags.test: Call send_read with an array. 2023-03-02 12:16:56 -08:00
message_list.test.js
message_list_data.test.js
message_list_view.test.js
message_store.test.js
muted_users.test.js i18n: Localize date and time displays across the app. 2023-02-26 17:43:47 -08:00
narrow.test.js private-messages: Update frontend strings to use "direct message" or "DM". 2023-02-24 11:47:26 -08:00
narrow_activate.test.js left sidebar: Scroll to current PM conversation on narrow. 2023-02-27 11:58:53 -08:00
narrow_local.test.js
narrow_state.test.js
narrow_unread.test.js
navbar_alerts.test.js
notifications.test.js
password.test.js
peer_data.test.js
people.test.js
people_errors.test.js
pill_typeahead.test.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
pm_conversations.test.js
pm_list.test.js
pm_list_data.test.js
poll_widget.test.js
popovers.test.js
presence.test.js
reactions.test.js
realm_playground.test.js typeahead: Suggest existing custom language in Code Playground settings. 2023-03-01 17:02:44 -08:00
recent_senders.test.js
recent_topics.test.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
reload.test.js
reload_state.test.js
rendered_markdown.test.js i18n: Localize date and time displays across the app. 2023-02-26 17:43:47 -08:00
resolved_topic.test.js
rtl.test.js
schema.test.js
scroll_util.test.js
search_future.test.js private-messages: Update frontend strings to use "direct message" or "DM". 2023-02-24 11:47:26 -08:00
search_now.test.js private-messages: Update frontend strings to use "direct message" or "DM". 2023-02-24 11:47:26 -08:00
search_pill.test.js private-messages: Update frontend strings to use "direct message" or "DM". 2023-02-24 11:47:26 -08:00
search_suggestion_future.test.js private-messages: Update frontend strings to use "direct message" or "DM". 2023-02-24 11:47:26 -08:00
search_suggestion_now.test.js private-messages: Update frontend strings to use "direct message" or "DM". 2023-02-24 11:47:26 -08:00
server_events.test.js
settings_bots.test.js
settings_config.test.js private-messages: Update frontend strings to use "direct message" or "DM". 2023-02-24 11:47:26 -08:00
settings_data.test.js
settings_emoji.test.js
settings_muted_topics.test.js i18n: Localize date and time displays across the app. 2023-02-26 17:43:47 -08:00
settings_muted_users.test.js i18n: Localize date and time displays across the app. 2023-02-26 17:43:47 -08:00
settings_org.test.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
settings_profile_fields.test.js
settings_realm_domains.test.js
settings_user_groups_legacy.test.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
spoilers.test.js
starred_messages.test.js
stream_create_subscribers_data.test.js
stream_data.test.js
stream_edit.test.js
stream_events.test.js
stream_list.test.js
stream_pill.test.js
stream_search.test.js
stream_settings_ui.test.js
stream_sort.test.js
stream_topic_history.test.js
submessage.test.js
support.test.js
templates.test.js
timerender.test.js i18n: Localize date and time displays across the app. 2023-02-26 17:43:47 -08:00
top_left_corner.test.js
topic_generator.test.js
topic_list_data.test.js
transmit.test.js
typeahead.test.js
typeahead_helper.test.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
typing_data.test.js
typing_events.test.js
typing_status.test.js
unread.test.js
upgrade.test.js
upload.test.js
user_events.test.js
user_group_pill.test.js
user_groups.test.js
user_pill.test.js
user_search.test.js
user_status.test.js
user_topics.test.js i18n: Localize date and time displays across the app. 2023-02-26 17:43:47 -08:00
util.test.js
vdom.test.js
watchdog.test.js
widgetize.test.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
zblueslip.test.js
zjquery.test.js