fix chat markers - id is a attribute not element

This commit is contained in:
Martin/Geno 2019-06-06 20:26:27 +02:00 committed by Mickaël Rémond
parent b7c21871b1
commit 3ea0e38f98
2 changed files with 4 additions and 4 deletions

View File

@ -17,19 +17,19 @@ type Markable struct {
type MarkReceived struct { type MarkReceived struct {
MsgExtension MsgExtension
XMLName xml.Name `xml:"urn:xmpp:chat-markers:0 received"` XMLName xml.Name `xml:"urn:xmpp:chat-markers:0 received"`
ID string ID string `xml:"id,attr"`
} }
type MarkDisplayed struct { type MarkDisplayed struct {
MsgExtension MsgExtension
XMLName xml.Name `xml:"urn:xmpp:chat-markers:0 displayed"` XMLName xml.Name `xml:"urn:xmpp:chat-markers:0 displayed"`
ID string ID string `xml:"id,attr"`
} }
type MarkAcknowledged struct { type MarkAcknowledged struct {
MsgExtension MsgExtension
XMLName xml.Name `xml:"urn:xmpp:chat-markers:0 acknowledged"` XMLName xml.Name `xml:"urn:xmpp:chat-markers:0 acknowledged"`
ID string ID string `xml:"id,attr"`
} }
func init() { func init() {

View File

@ -18,7 +18,7 @@ type ReceiptRequest struct {
type ReceiptReceived struct { type ReceiptReceived struct {
MsgExtension MsgExtension
XMLName xml.Name `xml:"urn:xmpp:receipts received"` XMLName xml.Name `xml:"urn:xmpp:receipts received"`
ID string ID string `xml:"id,attr"`
} }
func init() { func init() {