1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 16:45:58 +01:00

Don't send empty version fields.

We used to send a null version field in every message.  Don't.
This commit is contained in:
Juliusz Chroboczek 2023-04-29 19:59:36 +02:00
parent e786e1bd11
commit 1879ec81ea

View file

@ -113,7 +113,7 @@ func (c *webClient) PushClient(group, kind, id string, username string, perms []
type clientMessage struct { type clientMessage struct {
Type string `json:"type"` Type string `json:"type"`
Version []string `json:"version"` Version []string `json:"version,omitempty"`
Kind string `json:"kind,omitempty"` Kind string `json:"kind,omitempty"`
Error string `json:"error,omitempty"` Error string `json:"error,omitempty"`
Id string `json:"id,omitempty"` Id string `json:"id,omitempty"`