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