2026-03-10 16:35:56 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"encoding/xml"
|
|
|
|
|
"gosrc.io/xmpp/stanza"
|
|
|
|
|
)
|
|
|
|
|
|
2026-03-10 16:48:10 +00:00
|
|
|
// Implementation of XEP-0224: Attention
|
2026-03-10 16:35:56 +00:00
|
|
|
|
|
|
|
|
type Attention struct {
|
|
|
|
|
stanza.MsgExtension
|
|
|
|
|
XMLName xml.Name `xml:"urn:xmpp:attention:0 attention"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
stanza.TypeRegistry.MapExtension(stanza.PKTMessage, xml.Name{Space: "urn:xmpp:attention:0", Local: "attention"}, Attention{})
|
|
|
|
|
}
|