mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-15 01:50:27 +00:00
21 lines
434 B
Go
21 lines
434 B
Go
|
package xmpp
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
func (c *Client) ApproveSubscription(jid string) {
|
||
|
fmt.Fprintf(c.conn, "<presence to='%s' type='subscribed'/>",
|
||
|
xmlEscape(jid))
|
||
|
}
|
||
|
|
||
|
func (c *Client) RevokeSubscription(jid string) {
|
||
|
fmt.Fprintf(c.conn, "<presence to='%s' type='unsubscribed'/>",
|
||
|
xmlEscape(jid))
|
||
|
}
|
||
|
|
||
|
func (c *Client) RequestSubscription(jid string) {
|
||
|
fmt.Fprintf(c.conn, "<presence to='%s' type='subscribe'/>",
|
||
|
xmlEscape(jid))
|
||
|
}
|