Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
pm_list: Show correct unread unread counts.
Aman Agrawale41fffc43e8c
diff --git a/frontend_tests/node_tests/pm_list.js b/frontend_tests/node_tests/pm_list.jsindex ecb0c38bd53..07e8d00046b 100644--- a/frontend_tests/node_tests/pm_list.js+++ b/frontend_tests/node_tests/pm_list.js@@ -161,7 +161,7 @@ test("update_dom_with_unread_counts", (override) => {override(narrow_state, "active", () => true);const total_count = $.create("total-count-stub");- const private_li = $(".top_left_private_messages");+ const private_li = $(".top_left_private_messages .private_messages_header");private_li.set_find_results(".unread_count", total_count);counts = {diff --git a/static/js/pm_list.js b/static/js/pm_list.jsindex 98b258814af..914d17d63fc 100644--- a/static/js/pm_list.js+++ b/static/js/pm_list.js@@ -24,7 +24,7 @@ export function clear_for_testing() {// left corner of the app. This was split out from stream_list.js.function get_filter_li() {- return $(".top_left_private_messages");+ return $(".top_left_private_messages .private_messages_header");}function set_count(count) {diff --git a/static/styles/left_sidebar.css b/static/styles/left_sidebar.cssindex 60304e2a9d3..b6caac97c99 100644--- a/static/styles/left_sidebar.css+++ b/static/styles/left_sidebar.css@@ -252,6 +252,7 @@ li.active-sub-filter {/* This margin accounts for the fact that the private messagescontainer gets a few pixels taller when expanded */margin: 0;+ display: inline;}i {