From cf87f53da3980c1c08d1b4bd0836ac6adebb5bec Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Thu, 12 Aug 2021 21:20:06 -0700 Subject: [PATCH] Do not send empty type when its not apropriate --- core/chat/events/events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/chat/events/events.go b/core/chat/events/events.go index bda8b21d2..18fdfee6b 100644 --- a/core/chat/events/events.go +++ b/core/chat/events/events.go @@ -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"` }