forked from jshiffer/go-xmpp
similar fixes for presence
This commit is contained in:
parent
1dd8c2eeac
commit
cb6591b513
16
xmpp.go
16
xmpp.go
@ -334,15 +334,15 @@ type clientText struct {
|
|||||||
|
|
||||||
type clientPresence struct {
|
type clientPresence struct {
|
||||||
XMLName xml.Name `xml:"jabber:client presence"`
|
XMLName xml.Name `xml:"jabber:client presence"`
|
||||||
From string `xml:",attr"`
|
From string `xml:"from,attr"`
|
||||||
Id string `xml:",attr"`
|
Id string `xml:"id,attr"`
|
||||||
To string `xml:",attr"`
|
To string `xml:"to,attr"`
|
||||||
Type string `xml:",attr"` // error, probe, subscribe, subscribed, unavailable, unsubscribe, unsubscribed
|
Type string `xml:"type,attr"` // error, probe, subscribe, subscribed, unavailable, unsubscribe, unsubscribed
|
||||||
Lang string `xml:",attr"`
|
Lang string `xml:"lang,attr"`
|
||||||
|
|
||||||
Show string // away, chat, dnd, xa
|
Show string `xml:"show,attr"`// away, chat, dnd, xa
|
||||||
Status string // sb []clientText
|
Status string `xml:"status,attr"`// sb []clientText
|
||||||
Priority string
|
Priority string `xml:"priority,attr"`
|
||||||
Error *clientError
|
Error *clientError
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user