Files
lambda/xmpp-displayed_markers.go

20 lines
444 B
Go
Raw Normal View History

2026-02-01 14:03:31 +00:00
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:reply:0", Local: "displayed"}, Marker{})
}