onboarding: Improve placeholder message for dm with yourself.

Fixes #29078
This commit is contained in:
nimishmedatwal
2024-02-27 08:13:21 +05:30
committed by Tim Abbott
parent c60cc07605
commit 3d30fcd10a
2 changed files with 5 additions and 13 deletions

View File

@@ -330,18 +330,10 @@ function pick_empty_narrow_banner(): NarrowBannerData {
defaultMessage:
"You have not sent any direct messages to yourself yet!",
}),
html: $t_html(
{
defaultMessage:
"Why not <z-link>start a conversation with yourself</z-link>?",
},
{
"z-link": (content_html) =>
`<a href="#" class="empty_feed_compose_private">${content_html.join(
"",
)}</a>`,
},
),
html: $t_html({
defaultMessage:
"Use this space for personal notes, or to test out Zulip features.",
}),
};
}
return {

View File

@@ -408,7 +408,7 @@ run_test("show_empty_narrow_message", ({mock_template}) => {
$(".empty_feed_notice_main").html(),
empty_narrow_html(
"translated: You have not sent any direct messages to yourself yet!",
'translated HTML: Why not <a href="#" class="empty_feed_compose_private">start a conversation with yourself</a>?',
"translated HTML: Use this space for personal notes, or to test out Zulip features.",
),
);