exceptions: Update DM permission error string.

This commit is contained in:
Vector73 2024-07-11 06:45:46 +05:30 committed by Tim Abbott
parent e64b67525f
commit a43d8159a9
2 changed files with 2 additions and 2 deletions

View File

@ -534,7 +534,7 @@ class DirectMessagePermissionError(JsonableError):
if is_nobody_group: if is_nobody_group:
msg = _("Direct messages are disabled in this organization.") msg = _("Direct messages are disabled in this organization.")
else: 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) super().__init__(msg)

View File

@ -2535,7 +2535,7 @@ class PersonalMessageSendTest(ZulipTestCase):
self.send_personal_message(user_profile, cordelia) self.send_personal_message(user_profile, cordelia)
self.assertEqual( self.assertEqual(
str(direct_message_permission_error.exception), 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 # We can send to this direct message group as it has administrator as one of the