2
0
mirror of https://github.com/FluuxIO/go-xmpp synced 2024-11-11 07:11:03 +00:00

fix: add xml namespace prefix to message lang attrs

This commit is contained in:
Derek Brown 2021-01-20 09:24:46 -05:00
parent cef045dc58
commit b235acdc6e
2 changed files with 3 additions and 2 deletions

View File

@ -8,9 +8,10 @@ import (
// ============================================================================
// Message Packet
// LocalizedString is a string node with a language attribute.
type LocalizedString struct {
Content string `xml:",chardata"`
Lang string `xml:"lang,attr,omitempty"`
Lang string `xml:"http://www.w3.org/XML/1998/namespace lang,attr,omitempty"`
}
// Message implements RFC 6120 - A.5 Client Namespace (a part)

View File

@ -10,7 +10,7 @@ type Attrs struct {
Id string `xml:"id,attr,omitempty"`
From string `xml:"from,attr,omitempty"`
To string `xml:"to,attr,omitempty"`
Lang string `xml:"lang,attr,omitempty"`
Lang string `xml:"http://www.w3.org/XML/1998/namespace lang,attr,omitempty"`
}
type packetFormatter interface {