Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
narrow_banner: Use plural error for multiple invalid dm-including users.
Evy Kassirer823a2b505218
diff --git a/web/src/narrow_banner.ts b/web/src/narrow_banner.tsindex 7db4b12e6b1..0a555849f68 100644--- a/web/src/narrow_banner.ts+++ b/web/src/narrow_banner.ts@@ -482,13 +482,12 @@ export function pick_empty_narrow_banner(current_filter: Filter): NarrowBannerDafor (const user of people_in_dms.values()) {if (user === undefined) {return {- // We intentionally give the same non-specific- // error message as the single user case,+ // We don't pinpoint which user is invalid,// since we don't display API email addresses// or user IDs typically in UI errors, and we// don't have any other handle as to which// user this was supposed to be.- title: $t({defaultMessage: "This user does not exist!"}),+ title: $t({defaultMessage: "One or more of these users do not exist!"}),};}valid_people_in_dms.push(user);diff --git a/web/tests/message_view.test.cjs b/web/tests/message_view.test.cjsindex 94fbbf59de1..bfcbdf785f7 100644--- a/web/tests/message_view.test.cjs+++ b/web/tests/message_view.test.cjs@@ -515,7 +515,7 @@ run_test("show_empty_narrow_message", ({mock_template, override, override_rewirenarrow_banner.show_empty_narrow_message(current_filter);assert.equal($(".empty_feed_notice_main").html(),- empty_narrow_html("translated: This user does not exist!"),+ empty_narrow_html("translated: One or more of these users do not exist!"),);current_filter = set_filter([["dm-including", [alice.user_id]]]);