Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Incorrect webhook event type is being sent on user joined. Fixes #1302

Gabe Kangas5853ec9cccf1
diff --git a/core/webhooks/chat.go b/core/webhooks/chat.go
index 464628e23d..0beb5ba630 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,
}