zulip/web
palashb01 3a4cb692fb filter: Create helper function that checks basic filter terms.
Currently, `is_common_narrow` relies on `calc_can_mark_messages_read`
to check a number of filters that are "common narrows" (which means
they have a special message header title and different behavior when
exiting a search view).

Creates a helper function,
`single_term_type_returns_all_messages_of_conversation`, that is
used in both the above functions.

The check for an empty array of term types is unnecessary for
`is_common_narrow` because the "All messages" view has an undefined
filter and the "in-home" term type used in the "zhome" message list
is covered. So that empty array check is not moved to the helper
function, and instead stays only in `calc_can_mark_messages_read`.

The helper function checks for a single term type (except in the case
of topic, which is checked in combination with stream) that will return
all the messages of a conversation.

To ensure consistency in the function, split the combined if
condition of in-home and in-all, further improved the comments, and
deleted the unnecessary ones.
2023-09-13 18:17:07 -07:00
..
e2e-tests settings_bots: Migrate manage bot to user profile modal. 2023-09-11 10:39:00 -07:00
generated
html
images styles: Remove Firefox override for dropdown appearance. 2023-07-24 13:10:03 -07:00
shared recent_view: Add table header to sort by unread count. 2023-09-13 14:58:13 -07:00
src filter: Create helper function that checks basic filter terms. 2023-09-13 18:17:07 -07:00
styles compose: Disable unneeded control buttons in preview mode. 2023-09-13 15:09:16 -07:00
templates compose: Disable unneeded control buttons in preview mode. 2023-09-13 15:09:16 -07:00
tests compose: Disable unneeded control buttons in preview mode. 2023-09-13 15:09:16 -07:00
third emoji: Match emoji sequences in markdown. 2023-08-23 16:18:15 -07:00
.browserslistrc webpack: Move webpack configuration to web. 2023-02-24 06:35:58 -08:00
.gitignore
babel.config.js babel: Include "transform-optional-chaining" in presets. 2023-08-14 16:07:16 -07:00
debug-require-webpack-plugin.ts
debug-require.js
postcss.config.js postcss: Enable postcss-preset-env. 2023-03-20 11:26:30 -07:00
webpack.assets.json stats: Add stats page_params to webpack.assets.json. 2023-08-24 10:43:38 -07:00
webpack.config.ts dependencies: Upgrade JavaScript dependencies. 2023-06-05 21:51:26 -07:00
webpack.dev-assets.json webpack: Move webpack configuration to web. 2023-02-24 06:35:58 -08:00