0

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

This commit is contained in:
Gabe Kangas 2021-08-12 13:19:09 -07:00
parent bf164d80ce
commit b966d32d77

View File

@ -30,9 +30,10 @@ func SendChatEventUsernameChanged(event events.NameChangeEvent) {
SendEventToWebhooks(webhookEvent) SendEventToWebhooks(webhookEvent)
} }
// SendChatEventUserJoined sends a webhook notifying that a user has joined.
func SendChatEventUserJoined(event events.UserJoinedEvent) { func SendChatEventUserJoined(event events.UserJoinedEvent) {
webhookEvent := WebhookEvent{ webhookEvent := WebhookEvent{
Type: models.UserNameChanged, Type: models.UserJoined,
EventData: event, EventData: event,
} }