zulip/static/js
Aman Agrawal e41fffc43e pm_list: Show correct unread unread counts.
We only update the `.private_messages_header` here since
unread_counts of `.expanded_private_message` are updated
via `pm_list.update_private_messages`.

This fixes the bug of PMs in `.expanded_private_message` having
the same unread count as `private_messages_header`.

Since we rerender the DOM of `.expanded_private_message` every
time we update unread count of PMs, we don't need to manually
update them here. Also, we always keep them on display since
there is no real need to toggle them. They are not visible
when they have 0 unread counts via `.zero_count`.
2021-04-15 10:08:50 -07:00
..
analytics js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
billing js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
bundles bundles: Remove redundant i18n import. 2021-04-13 17:41:10 -07:00
portico i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
stats i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
types/stacktrace-gps dependencies: Upgrade to webpack-bundle-tracker 1.0.0-alpha.1. 2021-04-06 09:31:35 -07:00
activity.js activity: Fix buddy_list unread count not being updated instantly. 2021-04-15 10:08:50 -07:00
admin.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
alert_popup.ts blueslip_stacktrace: Enlarge click target for expanding rows. 2021-03-26 22:07:26 -07:00
alert_words.js
alert_words_ui.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
all_messages_data.js message_list: Downgrade message_list.all to MessageListData. 2021-03-30 08:33:47 -07:00
archive.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
attachments_ui.js ui_report: Convert messages to FormatJS. 2021-04-13 17:41:10 -07:00
avatar.js confirm_dialog: Convert heading, yes button messages to FormatJS. 2021-04-13 17:41:10 -07:00
blueslip.js js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
blueslip_stacktrace.ts eslint: Enable @typescript-eslint/consistent-type-imports. 2021-03-18 17:26:19 -07:00
bot_data.js js: Clean up typeof … === "undefined" checks. 2021-03-24 13:15:01 -07:00
browser_history.js browser_history: If changing_hash, don't set to hash_before_overlay. 2021-04-09 08:24:02 -07:00
buddy_data.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
buddy_list.js node tests: Use clean BuddyList instance in tests. 2021-03-18 16:37:20 -04:00
channel.js minor: Fix mention of success handler in error wrapper. 2021-03-18 10:09:22 -07:00
click_handlers.js buddy_list_tooltip: Directly trigger tooltip on parent of elements. 2021-04-14 10:15:58 -07:00
color_class.js refactor: Extract color_class module. 2021-03-24 12:22:27 -07:00
color_data.js
colorspace.js
common.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
components.js i18n: Convert commented JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
compose.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
compose_actions.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
compose_fade.js js: Move current_msg_list, home_msg_list to ES6 module message_lists. 2021-03-29 18:23:47 -07:00
compose_fade_helper.js compose fade: Extract compose_fade_users class. 2021-03-21 20:16:08 -07:00
compose_fade_users.js compose fade: Extract compose_fade_users class. 2021-03-21 20:16:08 -07:00
compose_pm_pill.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
compose_state.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
compose_ui.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
composebox_typeahead.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
condense.js js: Move current_msg_list, home_msg_list to ES6 module message_lists. 2021-03-29 18:23:47 -07:00
confirm_dialog.js confirm_dialog: Focus on the yes_button after opening the modal. 2021-03-30 16:51:42 -07:00
copy_and_paste.js js: Move current_msg_list, home_msg_list to ES6 module message_lists. 2021-03-29 18:23:47 -07:00
csrf.js js: Convert static/js/csrf.js to ES6 module. 2021-03-26 10:17:56 -07:00
css_variables.js css_variables: Directly export number values for breakpoints. 2021-04-08 09:40:10 -07:00
debug.js
desktop_integration.js refactor: Extract browser_history module. 2021-03-22 13:29:32 -07:00
drafts.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
dropdown_list_widget.js dropdown_list_widget: Add a `include_current_item` parameter. 2021-04-05 17:51:59 -07:00
echo.js message_list: Downgrade message_list.all to MessageListData. 2021-03-30 08:33:47 -07:00
emoji_picker.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
emojisets.js js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
favicon.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
feature_flags.js
feedback_widget.js js: Convert static/js/blueslip.js to ES6 module. 2021-03-17 08:47:15 -04:00
fetch_status.js
filter.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
floating_recipient_bar.js js: Move current_msg_list, home_msg_list to ES6 module message_lists. 2021-03-29 18:23:47 -07:00
fold_dict.ts
gear_menu.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
giphy.js giphy: Use simplebar to replace browser scrollbar. 2021-04-14 10:50:47 -07:00
global.d.ts js: Move current_msg_list, home_msg_list to ES6 module message_lists. 2021-03-29 18:23:47 -07:00
hash_util.js ui_report: Convert messages to FormatJS. 2021-04-13 17:41:10 -07:00
hashchange.js hashchange: Set `changing_hash` state while changing overlays. 2021-04-09 08:24:02 -07:00
hbs.d.ts
hotkey.js giphy: Add GIPHY picker to message edit form. 2021-04-08 10:17:20 -07:00
hotspots.js js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
huddle_data.js node tests: Add test() wrapper for suggestions. 2021-03-12 15:29:23 -05:00
i18n.js i18n: Ignore missing translation errors from FormatJS. 2021-04-14 14:17:44 -07:00
info_overlay.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
input_pill.js js: Convert static/js/blueslip.js to ES6 module. 2021-03-17 08:47:15 -04:00
invite.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
keydown_util.js
lazy_set.js js: Convert static/js/blueslip.js to ES6 module. 2021-03-17 08:47:15 -04:00
lightbox.js js: Convert static/js/blueslip.js to ES6 module. 2021-03-17 08:47:15 -04:00
lightbox_canvas.js js: Convert static/js/blueslip.js to ES6 module. 2021-03-17 08:47:15 -04:00
list_cursor.js js: Convert static/js/blueslip.js to ES6 module. 2021-03-17 08:47:15 -04:00
list_util.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
list_widget.js js: Convert static/js/blueslip.js to ES6 module. 2021-03-17 08:47:15 -04:00
loading.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
local_message.js message_list: Downgrade message_list.all to MessageListData. 2021-03-30 08:33:47 -07:00
localstorage.js js: Clean up typeof … === "undefined" checks. 2021-03-24 13:15:01 -07:00
markdown.js linkifiers: Update API to send data using dictionaries. 2021-04-13 12:16:07 -07:00
markdown_config.js js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
message_edit.js message-edit: Show the edited content on editing message failure. 2021-04-14 09:42:22 -07:00
message_edit_history.js ui_report: Convert messages to FormatJS. 2021-04-13 17:41:10 -07:00
message_events.js refactor: Simplify recent_senders code. 2021-04-14 16:28:07 -07:00
message_fetch.js message_list: Downgrade message_list.all to MessageListData. 2021-03-30 08:33:47 -07:00
message_flags.js left sidebar: Add support to unstar all messages in topic. 2021-03-23 00:17:15 -07:00
message_helper.js refactor: Move pm_conversations.process_message. 2021-03-29 14:53:57 -07:00
message_list.js message_list: Convert bookend_content messages to FormatJS. 2021-04-13 17:41:10 -07:00
message_list_data.js js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
message_list_view.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
message_lists.js js: Move current_msg_list, home_msg_list to ES6 module message_lists. 2021-03-29 18:23:47 -07:00
message_live_update.js message_list: Downgrade message_list.all to MessageListData. 2021-03-30 08:33:47 -07:00
message_parser.js refactor: Extract message_parser module. 2021-03-22 13:21:56 -07:00
message_scroll.js js: Move current_msg_list, home_msg_list to ES6 module message_lists. 2021-03-29 18:23:47 -07:00
message_store.js refactor: Extract echo.update_message_lists. 2021-03-29 14:53:57 -07:00
message_user_ids.js node tests: Clear message_user_ids. 2021-04-03 15:03:00 -04:00
message_util.js message_list: Downgrade message_list.all to MessageListData. 2021-03-30 08:33:47 -07:00
message_view_header.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
message_viewport.js css_variables: Directly export number values for breakpoints. 2021-04-08 09:40:10 -07:00
muting.js mute user: Add frontend functions to maintain data. 2021-04-06 18:44:09 -07:00
muting_ui.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
narrow.js message_list: Downgrade message_list.all to MessageListData. 2021-03-30 08:33:47 -07:00
narrow_banner.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
narrow_state.js js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
navigate.js js: Move current_msg_list, home_msg_list to ES6 module message_lists. 2021-03-29 18:23:47 -07:00
night_mode.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
notifications.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
overlays.js css: Adjust scope for main overlay CSS and click handlers. 2021-04-14 08:27:18 -07:00
padded_widget.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
page_params.js js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
panels.js js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
peer_data.js js: Convert static/js/blueslip.js to ES6 module. 2021-03-17 08:47:15 -04:00
people.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
pill_typeahead.js
pm_conversations.js refactor: Move pm_conversations.process_message. 2021-03-29 14:53:57 -07:00
pm_list.js pm_list: Show correct unread unread counts. 2021-04-15 10:08:50 -07:00
pm_list_dom.js
poll_widget.js js: Simplify code using default parameters and destructuring. 2021-03-26 09:21:46 -07:00
popovers.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
presence.js refactor: Move suspect_offline logic into watchdog. 2021-03-23 14:08:39 -04:00
reactions.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
ready.js ready: Wait for other ready callbacks before marking app loaded. 2021-03-14 17:36:22 -07:00
realm_icon.js js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
realm_logo.js js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
recent_senders.js refactor: Simplify recent_senders code. 2021-04-14 16:28:07 -07:00
recent_topics.js recent_topics: Extract function to check `table` focus. 2021-04-04 18:01:06 -07:00
reload.js ui_report: Convert messages to FormatJS. 2021-04-13 17:41:10 -07:00
reload_state.js node tests: Add test() wrapper for channel. 2021-03-20 11:00:48 -04:00
reminder.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
rendered_markdown.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
resize.js js: Move current_msg_list, home_msg_list to ES6 module message_lists. 2021-03-29 18:23:47 -07:00
rows.js js: Move current_msg_list, home_msg_list to ES6 module message_lists. 2021-03-29 18:23:47 -07:00
rtl.js
schema.js
scroll_bar.js js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
scroll_util.js js: Convert static/js/ui.js to ES6 module. 2021-03-02 17:06:35 -08:00
search.js js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
search_pill.js
search_pill_widget.js js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
search_suggestion.js js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
search_util.js
sent_messages.js js: Convert static/js/blueslip.js to ES6 module. 2021-03-17 08:47:15 -04:00
server_events.js js: Move current_msg_list, home_msg_list to ES6 module message_lists. 2021-03-29 18:23:47 -07:00
server_events_dispatch.js ui_report: Convert messages to FormatJS. 2021-04-13 17:41:10 -07:00
settings.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
settings_account.js ui_report: Convert messages to FormatJS. 2021-04-13 17:41:10 -07:00
settings_bots.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
settings_config.js i18n: Convert commented JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
settings_data.js js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
settings_display.js ui_report: Convert messages to FormatJS. 2021-04-13 17:41:10 -07:00
settings_emoji.js ui_report: Convert messages to FormatJS. 2021-04-13 17:41:10 -07:00
settings_exports.js ui_report: Convert messages to FormatJS. 2021-04-13 17:41:10 -07:00
settings_invites.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
settings_linkifiers.js linkifiers: Add helper function to handle API errors. 2021-04-14 01:33:29 -07:00
settings_muted_topics.js refactor: Rename settings/muted-topics code to be specific. 2021-04-05 18:04:31 -07:00
settings_notifications.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
settings_org.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
settings_panel_menu.js settings: Allow switching between user and org settings manually. 2021-04-07 01:02:03 -07:00
settings_profile_fields.js custom profile fields: Rename few functions. 2021-03-26 11:49:28 -07:00
settings_sections.js refactor: Rename settings/muted-topics code to be specific. 2021-04-05 18:04:31 -07:00
settings_streams.js ui_report: Convert messages to FormatJS. 2021-04-13 17:41:10 -07:00
settings_toggle.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
settings_ui.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
settings_user_groups.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
settings_users.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
setup.js setup: Use the number of completed password changes for race detection. 2021-04-01 13:49:02 -07:00
spoilers.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
starred_messages.js js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
starred_messages_ui.js confirm_dialog: Convert heading, yes button messages to FormatJS. 2021-04-13 17:41:10 -07:00
stream_bar.js refactor: Extract color_class module. 2021-03-24 12:22:27 -07:00
stream_color.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
stream_create.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
stream_data.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
stream_edit.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
stream_events.js refactor: Avoid update_calculated_fields() calls. 2021-04-05 09:52:19 -07:00
stream_list.js bug fix: Fix today's regression with topic counts. 2021-04-14 16:29:49 -07:00
stream_muting.js message_list: Downgrade message_list.all to MessageListData. 2021-03-30 08:33:47 -07:00
stream_pill.js
stream_popover.js topic_sidebar_actions: Remove "Narrow to topic" option. 2021-04-07 11:06:50 -07:00
stream_settings_data.js refactor: Avoid update_calculated_fields() calls. 2021-04-05 09:52:19 -07:00
stream_sort.js code cleanup: Remove obsolete stream_sort code. 2021-03-13 11:48:50 -05:00
stream_topic_history.js message_list: Downgrade message_list.all to MessageListData. 2021-03-30 08:33:47 -07:00
stream_ui_updates.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
submessage.js js: Convert static/js/blueslip.js to ES6 module. 2021-03-17 08:47:15 -04:00
subs.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
templates.js templates: Remove context argument from {{#tr}} block helper. 2021-04-13 18:59:46 -07:00
timerender.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
tippyjs.js tippy: Place message reaction tooltip at bottom. 2021-04-08 09:48:44 -07:00
todo_widget.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
top_left_corner.js top_left_corner: Directly use `span.unread_count` to display unreads. 2021-04-14 10:57:16 -07:00
topic_generator.js
topic_list.js js: Convert static/js/blueslip.js to ES6 module. 2021-03-17 08:47:15 -04:00
topic_list_data.js
topic_zoom.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
transmit.js js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
tutorial.js js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
typeahead_helper.js emoji typehahead: Fix render_emoji. 2021-04-14 09:35:31 -07:00
typing.js js: Convert static/js/blueslip.js to ES6 module. 2021-03-17 08:47:15 -04:00
typing_data.js node tests: Add test() wrapper for typing_data. 2021-03-15 13:05:49 -04:00
typing_events.js typing: Display several people are typing... 2021-04-07 00:17:30 -07:00
ui.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
ui_init.js linkifiers: Update API to send data using dictionaries. 2021-04-13 12:16:07 -07:00
ui_report.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
ui_util.js top_left_corner: Directly use `span.unread_count` to display unreads. 2021-04-14 10:57:16 -07:00
unread.js js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
unread_ops.js message_list: Downgrade message_list.all to MessageListData. 2021-03-30 08:33:47 -07:00
unread_ui.js sidebar toggles: Lift code to display PM counts. 2021-03-30 12:07:51 -07:00
upload.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
upload_widget.js upload_widget: Fix units in maximum file size message. 2021-04-13 17:41:10 -07:00
user_events.js js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
user_groups.js js: Convert static/js/blueslip.js to ES6 module. 2021-03-17 08:47:15 -04:00
user_pill.js js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
user_search.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
user_status.js js: Convert static/js/blueslip.js to ES6 module. 2021-03-17 08:47:15 -04:00
user_status_ui.js js: Use jQuery as a module. 2021-03-12 10:08:25 -08:00
util.js
vdom.js js: Convert static/js/blueslip.js to ES6 module. 2021-03-17 08:47:15 -04:00
watchdog.js refactor: Move suspect_offline logic into watchdog. 2021-03-23 14:08:39 -04:00
webpack_public_path.js js: Convert static/js/page_params.js to ES6 module. 2021-03-26 10:17:56 -07:00
widgetize.js js: Move current_msg_list, home_msg_list to ES6 module message_lists. 2021-03-29 18:23:47 -07:00
zcommand.js i18n: Automatically convert remaining JavaScript messages to FormatJS. 2021-04-13 17:41:10 -07:00
zform.js js: Convert static/js/blueslip.js to ES6 module. 2021-03-17 08:47:15 -04:00
zulip_test.js js: Move current_msg_list, home_msg_list to ES6 module message_lists. 2021-03-29 18:23:47 -07:00