Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
exceptions: Update DM permission error string.
Vector73a43d8159a9a7
diff --git a/zerver/lib/exceptions.py b/zerver/lib/exceptions.pyindex 672ef2f5cfb..3b04957e327 100644--- a/zerver/lib/exceptions.py+++ b/zerver/lib/exceptions.py@@ -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)diff --git a/zerver/tests/test_message_send.py b/zerver/tests/test_message_send.pyindex eecdb3055aa..d68006be33a 100644--- a/zerver/tests/test_message_send.py+++ b/zerver/tests/test_message_send.py@@ -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