i forgor to commit sorry

This commit is contained in:
2026-04-06 11:04:53 +01:00
parent 60d6a287e5
commit ce83000e0c
12 changed files with 327 additions and 55 deletions
+13 -8
View File
@@ -5,17 +5,22 @@ import (
"gosrc.io/xmpp/stanza"
)
// Experimental implementation of XEP-XXXX: Explicit Mentions
// https://git.isekai.rocks/snit/protoxeps/tree/explicit-mentions.xml
// Implementation of XEP-0513: Explicit Mentions
// https://xmpp.org/extensions/xep-0513.html
type NoPing struct{}
type Active struct{}
type Mention struct {
stanza.MsgExtension
XMLName xml.Name `xml:"urn:xmpp:mentions:0 mention"`
URI string `xml:"uri,attr,omitempty"`
Begin int `xml:"begin,attr,omitempty"`
End int `xml:"end,attr,omitempty"`
Type string `xml:"type,attr"`
Target string `xml:"target,attr,omitempty"`
XMLName xml.Name `xml:"urn:xmpp:mentions:0 mention"`
URI string `xml:"uri,attr,omitempty"`
Begin int `xml:"begin,attr,omitempty"`
End int `xml:"end,attr,omitempty"`
Mentions string `xml:"mentions,attr"`
OccupantID string `xml:"occupantid,attr,omitempty"`
NoPing NoPing `xml:"noping,omitempty"`
Active Active `xml:"active,omitempty"`
}
func init() {