Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
left_sidebar: Use DM identifiers around direct-messages list.
Karl Stolley825a7106c6dc
diff --git a/web/src/pm_list.js b/web/src/pm_list.jsindex b8dfaf2e80e..7a415a78044 100644--- a/web/src/pm_list.js+++ b/web/src/pm_list.js@@ -37,7 +37,7 @@ export function close() {update_private_messages();}-export function _build_private_messages_list() {+export function _build_direct_messages_list() {const conversations = pm_list_data.get_conversations();const pm_list_info = pm_list_data.get_list_info(zoomed);const conversations_to_be_shown = pm_list_info.conversations_to_be_shown;@@ -58,7 +58,7 @@ export function _build_private_messages_list() {}function set_dom_to(new_dom) {- const $container = scroll_util.get_content_element($("#private_messages_list"));+ const $container = scroll_util.get_content_element($("#direct-messages-list"));function replace_content(html) {$container.html(html);@@ -90,7 +90,7 @@ export function update_private_messages() {prior_dom = undefined;}} else {- const new_dom = _build_private_messages_list();+ const new_dom = _build_direct_messages_list();set_dom_to(new_dom);}// Make sure to update the left sidebar heights after updatingdiff --git a/web/src/stream_list.js b/web/src/stream_list.jsindex c9e98d9df6f..894665dbbf3 100644--- a/web/src/stream_list.js+++ b/web/src/stream_list.js@@ -817,7 +817,7 @@ export function set_event_handlers({on_stream_click}) {const scroll_position = $("#left_sidebar_scroll_container .simplebar-content-wrapper",).scrollTop();- const pm_list_height = $("#private_messages_list").height();+ const pm_list_height = $("#direct-messages-list").height();if (scroll_position > pm_list_height) {$("#toggle_private_messages_section_icon").addClass("fa-caret-right");$("#toggle_private_messages_section_icon").removeClass("fa-caret-down");diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.cssindex fca45e90200..74305b53672 100644--- a/web/styles/dark_theme.css+++ b/web/styles/dark_theme.css@@ -430,7 +430,7 @@.active_private_messages_section {#private_messages_section,- #private_messages_list,+ #direct-messages-list,#hide-more-direct-messages {background-color: hsl(199deg 33% 46% / 20%);}diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.cssindex 3b2dfdaa800..381402cdffc 100644--- a/web/styles/left_sidebar.css+++ b/web/styles/left_sidebar.css@@ -335,7 +335,7 @@ li.show-more-topics {.active_private_messages_section {#private_messages_section,- #private_messages_list,+ #direct-messages-list,#hide-more-direct-messages {background-color: hsl(202deg 56% 91%);}@@ -344,7 +344,7 @@ li.show-more-topics {border-radius: 4px 4px 0 0;}- #private_messages_list {+ #direct-messages-list {border-radius: 0 0 4px 4px;}diff --git a/web/templates/left_sidebar.hbs b/web/templates/left_sidebar.hbsindex ffe0b71177f..30288f8bfa1 100644--- a/web/templates/left_sidebar.hbs+++ b/web/templates/left_sidebar.hbs@@ -149,7 +149,7 @@{{~!-- squash whitespace --~}}<div id="left_sidebar_scroll_container" class="scrolling_list" data-simplebar><div class="direct-messages-container zoom-out hidden-for-spectators">- <div id="private_messages_list"></div>+ <div id="direct-messages-list"></div></div><div id="streams_list" class="zoom-out">