complete XEP-0333 support (with displayed)
This commit is contained in:
parent
4e597505f4
commit
e7c57cad97
|
@ -18,7 +18,21 @@ type MarkReceived struct {
|
||||||
ID string
|
ID string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type MarkDisplayed struct {
|
||||||
|
MsgExtension
|
||||||
|
XMLName xml.Name `xml:"urn:xmpp:chat-markers:0 displayed"`
|
||||||
|
ID string
|
||||||
|
}
|
||||||
|
|
||||||
|
type MarkAcknowledged struct {
|
||||||
|
MsgExtension
|
||||||
|
XMLName xml.Name `xml:"urn:xmpp:chat-markers:0 acknowledged"`
|
||||||
|
ID string
|
||||||
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
typeRegistry.MapExtension(PKTMessage, xml.Name{"urn:xmpp:chat-markers:0", "markable"}, Markable{})
|
typeRegistry.MapExtension(PKTMessage, xml.Name{"urn:xmpp:chat-markers:0", "markable"}, Markable{})
|
||||||
typeRegistry.MapExtension(PKTMessage, xml.Name{"urn:xmpp:chat-markers:0", "received"}, MarkReceived{})
|
typeRegistry.MapExtension(PKTMessage, xml.Name{"urn:xmpp:chat-markers:0", "received"}, MarkReceived{})
|
||||||
|
typeRegistry.MapExtension(PKTMessage, xml.Name{"urn:xmpp:chat-markers:0", "displayed"}, MarkDisplayed{})
|
||||||
|
typeRegistry.MapExtension(PKTMessage, xml.Name{"urn:xmpp:chat-markers:0", "acknowledged"}, MarkAcknowledged{})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue