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 {
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() {

View file

@ -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() {