narrow_banner: Update invalid/private channel empty narrow copy.

Decided here:
https://chat.zulip.org/#narrow/channel/6-frontend/topic/unknown.20channel.20ID.20-.20empty.20feed.20banner/near/1956965
This commit is contained in:
evykassirer 2024-10-12 23:24:20 -07:00 committed by Tim Abbott
parent 6121d97ae9
commit 2c9d4eaeee
2 changed files with 10 additions and 3 deletions

View File

@ -290,7 +290,10 @@ export function pick_empty_narrow_banner(): NarrowBannerData {
}
return {
title: $t({defaultMessage: "This channel does not exist or is private."}),
title: $t({
defaultMessage:
"This channel doesn't exist, or you are not allowed to view it.",
}),
};
}
// else fallthrough to default case

View File

@ -253,7 +253,9 @@ run_test("show_empty_narrow_message", ({mock_template, override}) => {
narrow_banner.show_empty_narrow_message();
assert.equal(
$(".empty_feed_notice_main").html(),
empty_narrow_html("translated: This channel does not exist or is private."),
empty_narrow_html(
"translated: This channel doesn't exist, or you are not allowed to view it.",
),
);
// for non-subbed public stream
@ -573,7 +575,9 @@ run_test("show_empty_narrow_message", ({mock_template, override}) => {
narrow_banner.show_empty_narrow_message();
assert.equal(
$(".empty_feed_notice_main").html(),
empty_narrow_html("translated: This channel does not exist or is private."),
empty_narrow_html(
"translated: This channel doesn't exist, or you are not allowed to view it.",
),
);
set_filter([