mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-24 19:42:00 -08:00
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 {
|
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() {
|
||||||
|
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user