Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
narrow_banner: Drop empty action line from empty `dm-including:` views.
Joelute99dbea333136
diff --git a/web/src/narrow_banner.js b/web/src/narrow_banner.jsindex 6dab67bab84..b9a7d30985b 100644--- a/web/src/narrow_banner.js+++ b/web/src/narrow_banner.js@@ -414,15 +414,6 @@ function pick_empty_narrow_banner() {},{person: person_in_dms.full_name},),- html: $t_html(- {- defaultMessage: "Why not <z-link>start the conversation</z-link>?",- },- {- "z-link": (content_html) =>- `<a href="#" class="empty_feed_compose_private">${content_html}</a>`,- },- ),};}}diff --git a/web/tests/narrow.test.js b/web/tests/narrow.test.jsindex b58e4ab7d63..814d2e87a29 100644--- a/web/tests/narrow.test.js+++ b/web/tests/narrow.test.js@@ -441,10 +441,7 @@ run_test("show_empty_narrow_message", ({mock_template}) => {narrow_banner.show_empty_narrow_message();assert.equal($(".empty_feed_notice_main").html(),- empty_narrow_html(- "translated: You have no direct messages including Example Bot yet.",- 'translated HTML: Why not <a href="#" class="empty_feed_compose_private">start the conversation</a>?',- ),+ empty_narrow_html("translated: You have no direct messages including Example Bot yet."),);// sending direct messages enabled@@ -454,10 +451,7 @@ run_test("show_empty_narrow_message", ({mock_template}) => {narrow_banner.show_empty_narrow_message();assert.equal($(".empty_feed_notice_main").html(),- empty_narrow_html(- "translated: You have no direct messages including Alice Smith yet.",- 'translated HTML: Why not <a href="#" class="empty_feed_compose_private">start the conversation</a>?',- ),+ empty_narrow_html("translated: You have no direct messages including Alice Smith yet."),);set_filter([["dm-including", me.email]]);