Skip to content

Commit

Permalink
allow empty source in presence notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Jun 13, 2019
1 parent 9e07bbf commit 93805d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/datamodel.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ type MsgServerData struct {
// MsgServerPres is presence notification {pres} (authoritative update).
type MsgServerPres struct {
Topic string `json:"topic"`
Src string `json:"src"`
Src string `json:"src,omitempty"`
What string `json:"what"`
UserAgent string `json:"ua,omitempty"`
SeqId int `json:"seq,omitempty"`
Expand Down

0 comments on commit 93805d4

Please sign in to comment.