mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-24 11:32:00 -08:00
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:
commit
392d3a1ae7
@ -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"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user