compose: Add a placeholder "is …" for the `/me` slash command.

Fixes: #27399.
This commit is contained in:
N-Shar-ma 2023-10-27 18:08:59 +05:30 committed by Tim Abbott
parent 9a6cf82adc
commit ad26247247
3 changed files with 4 additions and 1 deletions

View File

@ -74,6 +74,7 @@ IGNORED_PHRASES = [
r"user@example\.com",
r"acme",
# Fragments of larger strings
r"is …",
r"your subscriptions on your Streams page",
r"Add global time<br />Everyone sees global times in their own time zone\.",
r"user",

View File

@ -445,6 +445,7 @@ export const slash_commands = [
text: $t({defaultMessage: "/me is excited (Display action text)"}),
name: "me",
aliases: "",
placeholder: $t({defaultMessage: "is …"}),
},
{
text: $t({defaultMessage: "/poll Where should we go to lunch today? (Create a poll)"}),

View File

@ -182,6 +182,7 @@ const me_slash = {
name: "me",
aliases: "",
text: "translated: /me is excited (Display action text)",
placeholder: "translated: is …",
};
const my_slash = {
@ -576,7 +577,7 @@ test("content_typeahead_selected", ({override}) => {
fake_this.query = "/m";
fake_this.completing = "slash";
actual_value = ct.content_typeahead_selected.call(fake_this, me_slash);
expected_value = "/me ";
expected_value = "/me translated: is …";
assert.equal(actual_value, expected_value);
fake_this.query = "/da";