mirror of https://github.com/zulip/zulip.git
exceptions: Update DM permission error string.
This commit is contained in:
parent
e64b67525f
commit
a43d8159a9
|
@ -534,7 +534,7 @@ class DirectMessagePermissionError(JsonableError):
|
|||
if is_nobody_group:
|
||||
msg = _("Direct messages are disabled in this organization.")
|
||||
else:
|
||||
msg = _("You do not have permission to send direct messages to this recipient.")
|
||||
msg = _("This conversation does not include any users who can authorize it.")
|
||||
super().__init__(msg)
|
||||
|
||||
|
||||
|
|
|
@ -2535,7 +2535,7 @@ class PersonalMessageSendTest(ZulipTestCase):
|
|||
self.send_personal_message(user_profile, cordelia)
|
||||
self.assertEqual(
|
||||
str(direct_message_permission_error.exception),
|
||||
"You do not have permission to send direct messages to this recipient.",
|
||||
"This conversation does not include any users who can authorize it.",
|
||||
)
|
||||
|
||||
# We can send to this direct message group as it has administrator as one of the
|
||||
|
|
Loading…
Reference in New Issue