compose: Update text on warning banner when user is not allow to dm.

Previously, the text on the warning banner when the user is not allowed
to direct message is "Direct messages are disabled in this organization.".
While the text on the warning banner when the user is not allowed to
send message to stream is "You do not have permission to post in this
stream". These wording is inconsistent with each other and we should
change it to keep them consistent and aligned with each other.

Fixes: #21896.
This commit is contained in:
Joelute 2023-09-05 18:22:12 -04:00 committed by Tim Abbott
parent f8f5196c75
commit 25841ad852
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ export function get_posting_policy_error_message() {
const recipients = compose_pm_pill.get_user_ids_string();
if (!people.user_can_direct_message(recipients)) {
return $t({
defaultMessage: "Direct messages are disabled in this organization.",
defaultMessage: "You are not allowed to send direct messages in this organization.",
});
}
return "";