Attention and experimental mentions impl

This commit is contained in:
2026-03-10 16:35:56 +00:00
parent bf1685a382
commit 77e4e444d4
10 changed files with 215 additions and 24 deletions

View File

@@ -9,7 +9,7 @@ import (
// This file has small functions that can be used to do XMPP stuff without writing tons of boilerplate
// Basic message sender. Anything more complex should be written by hand
func sendMessage(c xmpp.Sender, sendTo string, msgType stanza.StanzaType, body string, subject string, thread string) error {
func sendMessage(c xmpp.Sender, sendTo string, msgType stanza.StanzaType, body string, subject string, thread string, exts []stanza.MsgExtension) error {
m := stanza.Message{
Attrs: stanza.Attrs{
To: sendTo,
@@ -18,6 +18,7 @@ func sendMessage(c xmpp.Sender, sendTo string, msgType stanza.StanzaType, body s
Body: body,
Subject: subject,
Thread: thread,
Extensions: exts,
}
err := c.Send(m)
if err != nil {