Attention and experimental mentions impl
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user