Merge pull request #15 from TheoMcGinley/presence-parsing-fix

Parse show, status, and priority of presence stanzas as child elements
This commit is contained in:
Mickaël Rémond 2019-02-10 17:17:37 +01:00 committed by GitHub
commit 392d3a1ae7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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