From b966d32d770e2a432aae47b7436e71fdd11743d2 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Thu, 12 Aug 2021 13:19:09 -0700 Subject: [PATCH] Incorrect webhook event type is being sent on user joined. Fixes #1302 --- core/webhooks/chat.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/webhooks/chat.go b/core/webhooks/chat.go index 464628e23..0beb5ba63 100644 --- a/core/webhooks/chat.go +++ b/core/webhooks/chat.go @@ -30,9 +30,10 @@ func SendChatEventUsernameChanged(event events.NameChangeEvent) { SendEventToWebhooks(webhookEvent) } +// SendChatEventUserJoined sends a webhook notifying that a user has joined. func SendChatEventUserJoined(event events.UserJoinedEvent) { webhookEvent := WebhookEvent{ - Type: models.UserNameChanged, + Type: models.UserJoined, EventData: event, }