mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
compose and feed: Improve label for DMs to yourself.
This commit is contained in:
@@ -460,7 +460,7 @@ export function compute_placeholder_text(opts: ComposePlaceholderOptions): strin
|
||||
} else if (opts.direct_message_user_ids.length > 0) {
|
||||
const user_ids = opts.direct_message_user_ids;
|
||||
if (people.is_direct_message_conversation_with_self(user_ids)) {
|
||||
return $t({defaultMessage: "Message yourself"});
|
||||
return $t({defaultMessage: "Write yourself a note"});
|
||||
}
|
||||
const users = people.get_users_from_ids(user_ids);
|
||||
const recipient_parts = users.map((user) => {
|
||||
|
@@ -373,8 +373,7 @@ export function pick_empty_narrow_banner(current_filter: Filter): NarrowBannerDa
|
||||
if (people.is_my_user_id(recipient_user.user_id)) {
|
||||
return {
|
||||
title: $t({
|
||||
defaultMessage:
|
||||
"You have not sent any direct messages to yourself yet!",
|
||||
defaultMessage: "You haven't sent yourself any notes yet!",
|
||||
}),
|
||||
html: $t_html({
|
||||
defaultMessage:
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{{#if is_dm_with_self}}
|
||||
{{#tr}}
|
||||
Message yourself
|
||||
Write yourself a note
|
||||
{{/tr}}
|
||||
{{else}}
|
||||
{{#tr}}
|
||||
|
@@ -222,7 +222,7 @@ run_test("test_non_message_list_input", () => {
|
||||
user_ids: [current_user.user_id],
|
||||
});
|
||||
let label = $("#left_bar_compose_reply_button_big").html();
|
||||
assert.equal(label, "Message yourself");
|
||||
assert.equal(label, "Write yourself a note");
|
||||
|
||||
// Invalid data for a the reply button text.
|
||||
compose_closed_ui.update_recipient_text_for_reply_button({
|
||||
|
@@ -472,7 +472,7 @@ run_test("show_empty_narrow_message", ({mock_template, override}) => {
|
||||
assert.equal(
|
||||
$(".empty_feed_notice_main").html(),
|
||||
empty_narrow_html(
|
||||
"translated: You have not sent any direct messages to yourself yet!",
|
||||
"translated: You haven't sent yourself any notes yet!",
|
||||
"translated HTML: Use this space for personal notes, or to test out Zulip features.",
|
||||
),
|
||||
);
|
||||
|
Reference in New Issue
Block a user