Incorrect webhook event type is being sent on user joined. Fixes #1302
This commit is contained in:
parent
bf164d80ce
commit
b966d32d77
@ -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,
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user