mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-23 19:12:00 -08:00
Parse show, status, and priority of presence stanzas as child elements instead of attributes
This commit is contained in:
parent
c0f3d20440
commit
e1cb9ac037
@ -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"`
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user