Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

outgoing-webhook: Update Slack outgoing webhook error for private messages.

Lauryn Menard017b05fd84da
diff --git a/zerver/lib/outgoing_webhook.py b/zerver/lib/outgoing_webhook.py
index 42c09f7b885..d866ce64268 100644
--- a/zerver/lib/outgoing_webhook.py
+++ b/zerver/lib/outgoing_webhook.py
@@ -107,7 +107,7 @@ class SlackOutgoingWebhookService(OutgoingWebhookServiceInterface):
self, base_url: str, event: Dict[str, Any], realm: Realm
) -> Optional[Response]:
if event["message"]["type"] == "private":
- failure_message = "Slack outgoing webhooks don't support private messages."
+ failure_message = "Slack outgoing webhooks don't support direct messages."
fail_with_message(event, failure_message)
return None