Parse show, status, and priority of presence stanzas as child elements instead of attributes

This commit is contained in:
Theo McGinley 2019-02-09 14:18:37 +00:00
parent c0f3d20440
commit e1cb9ac037

View File

@ -8,9 +8,9 @@ import "encoding/xml"
type Presence struct { type Presence struct {
XMLName xml.Name `xml:"presence"` XMLName xml.Name `xml:"presence"`
PacketAttrs PacketAttrs
Show string `xml:"show,attr,omitempty"` // away, chat, dnd, xa Show string `xml:"show,omitempty"` // away, chat, dnd, xa
Status string `xml:"status,attr,omitempty"` Status string `xml:"status,omitempty"`
Priority string `xml:"priority,attr,omitempty"` Priority string `xml:"priority,omitempty"`
Error Err `xml:"error,omitempty"` Error Err `xml:"error,omitempty"`
} }