mirror of https://github.com/zulip/zulip.git
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:
parent
f8f5196c75
commit
25841ad852
|
@ -114,7 +114,7 @@ export function get_posting_policy_error_message() {
|
||||||
const recipients = compose_pm_pill.get_user_ids_string();
|
const recipients = compose_pm_pill.get_user_ids_string();
|
||||||
if (!people.user_can_direct_message(recipients)) {
|
if (!people.user_can_direct_message(recipients)) {
|
||||||
return $t({
|
return $t({
|
||||||
defaultMessage: "Direct messages are disabled in this organization.",
|
defaultMessage: "You are not allowed to send direct messages in this organization.",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
|
|
Loading…
Reference in New Issue