mirror of
https://github.com/owncast/owncast.git
synced 2024-11-25 06:12:23 +03:00
Fix incorrect webhook payload being sent in the new SetMessageVisibilityEvent
This commit is contained in:
parent
464ae9598b
commit
c9f8133507
2 changed files with 6 additions and 1 deletions
|
@ -19,3 +19,8 @@ func (e *SetMessageVisibilityEvent) GetBroadcastPayload() EventPayload {
|
|||
"visible": e.Visible,
|
||||
}
|
||||
}
|
||||
|
||||
// GetMessageType will return the event type for this message.
|
||||
func (e *SetMessageVisibilityEvent) GetMessageType() EventType {
|
||||
return VisibiltyUpdate
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ func SetMessagesVisibility(messageIDs []string, visibility bool) error {
|
|||
|
||||
// Send webhook
|
||||
wh := webhooks.WebhookEvent{
|
||||
EventData: event,
|
||||
EventData: payload,
|
||||
Type: event.GetMessageType(),
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue