forked from jshiffer/go-xmpp
Provide access to xml:lang information. (#168)
This commit is contained in:
parent
2f9bd427e8
commit
794ed98f9f
3
xmpp.go
3
xmpp.go
@ -888,6 +888,7 @@ type Chat struct {
|
|||||||
Thread string
|
Thread string
|
||||||
Ooburl string
|
Ooburl string
|
||||||
Oobdesc string
|
Oobdesc string
|
||||||
|
Lang string
|
||||||
Roster Roster
|
Roster Roster
|
||||||
Other []string
|
Other []string
|
||||||
OtherElem []XMLElement
|
OtherElem []XMLElement
|
||||||
@ -964,6 +965,7 @@ func (c *Client) Recv() (stanza interface{}, err error) {
|
|||||||
Other: v.OtherStrings(),
|
Other: v.OtherStrings(),
|
||||||
OtherElem: v.Other,
|
OtherElem: v.Other,
|
||||||
Stamp: stamp,
|
Stamp: stamp,
|
||||||
|
Lang: v.Lang,
|
||||||
}
|
}
|
||||||
return chat, nil
|
return chat, nil
|
||||||
case *clientQuery:
|
case *clientQuery:
|
||||||
@ -1314,6 +1316,7 @@ type clientMessage struct {
|
|||||||
ID string `xml:"id,attr"`
|
ID string `xml:"id,attr"`
|
||||||
To string `xml:"to,attr"`
|
To string `xml:"to,attr"`
|
||||||
Type string `xml:"type,attr"` // chat, error, groupchat, headline, or normal
|
Type string `xml:"type,attr"` // chat, error, groupchat, headline, or normal
|
||||||
|
Lang string `xml:"lang,attr"`
|
||||||
|
|
||||||
// These should technically be []clientText, but string is much more convenient.
|
// These should technically be []clientText, but string is much more convenient.
|
||||||
Subject string `xml:"subject"`
|
Subject string `xml:"subject"`
|
||||||
|
Loading…
Reference in New Issue
Block a user