forked from sunglocto/lambda
20 lines
451 B
Go
20 lines
451 B
Go
package main
|
|
|
|
// Partial implementation of XEP-0333: Displayed Markers
|
|
// https://xmpp.org/extensions/xep-0333.html
|
|
|
|
import (
|
|
"encoding/xml"
|
|
"gosrc.io/xmpp/stanza"
|
|
)
|
|
|
|
type Marker struct {
|
|
stanza.MsgExtension
|
|
XMLName xml.Name `xml:"urn:xmpp:chat-markers:0 displayed"`
|
|
ID string `xml:"id,attr"`
|
|
}
|
|
|
|
func init() {
|
|
stanza.TypeRegistry.MapExtension(stanza.PKTMessage, xml.Name{Space: "urn:xmpp:chat-markers:0", Local: "displayed"}, Marker{})
|
|
}
|