Browse Source

Do not send empty type when its not apropriate

pull/1309/head
Gabe Kangas 5 years ago
parent
commit
cf87f53da3
  1. 2
      core/chat/events/events.go

2
core/chat/events/events.go

@ -27,7 +27,7 @@ type OutboundEvent interface { @@ -27,7 +27,7 @@ type OutboundEvent interface {
// Event is any kind of event. A type is required to be specified.
type Event struct {
Type EventType `json:"type"`
Type EventType `json:"type,omitempty"`
Id string `json:"id"`
Timestamp time.Time `json:"timestamp"`
}

Loading…
Cancel
Save