fix chat markers - id is a attribute not element
This commit is contained in:
parent
b7c21871b1
commit
3ea0e38f98
|
@ -17,19 +17,19 @@ type Markable struct {
|
|||
type MarkReceived struct {
|
||||
MsgExtension
|
||||
XMLName xml.Name `xml:"urn:xmpp:chat-markers:0 received"`
|
||||
ID string
|
||||
ID string `xml:"id,attr"`
|
||||
}
|
||||
|
||||
type MarkDisplayed struct {
|
||||
MsgExtension
|
||||
XMLName xml.Name `xml:"urn:xmpp:chat-markers:0 displayed"`
|
||||
ID string
|
||||
ID string `xml:"id,attr"`
|
||||
}
|
||||
|
||||
type MarkAcknowledged struct {
|
||||
MsgExtension
|
||||
XMLName xml.Name `xml:"urn:xmpp:chat-markers:0 acknowledged"`
|
||||
ID string
|
||||
ID string `xml:"id,attr"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
|
|
@ -18,7 +18,7 @@ type ReceiptRequest struct {
|
|||
type ReceiptReceived struct {
|
||||
MsgExtension
|
||||
XMLName xml.Name `xml:"urn:xmpp:receipts received"`
|
||||
ID string
|
||||
ID string `xml:"id,attr"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
|
Loading…
Reference in a new issue