Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
inbox-ui: Check for channel view for showing collapsed folders note.
Lauryn Menarda072058ec53b
diff --git a/web/src/inbox_ui.ts b/web/src/inbox_ui.tsindex 0fe2cd92e72..727898fd1c3 100644--- a/web/src/inbox_ui.ts+++ b/web/src/inbox_ui.ts@@ -1386,11 +1386,14 @@ export function collapse_or_expand(container_id: string): void {// We show the note "All of your unread conversations are hidden.// Click on a section, folder, or channel to see what's inside" for-// the following situations:+// the following situations in the non-channel inbox view:// - All folders collapsed.// - If all folders are not collapsed, all visible channels are collapsed.// For all other cases, the note is hidden.function should_show_all_folders_collapsed_note(): boolean {+ if (inbox_util.is_channel_view()) {+ return false;+ }// TODO: Ideally this would read from internal structures, not the DOM.const has_visible_dm_folder = !$("#inbox-dm-header").hasClass("hidden_by_filters");if (has_visible_dm_folder && !collapsed_containers.has("inbox-dm-header")) {