Add rendering forms to messages, add configuring mucs, add getting muc affiliations, add a bunch of other stuff idk man check the diff
This commit is contained in:
1 parent
7a875f84a5
commit
34b885a770
19 files changed
+706
-101
No files matched your search
+9
-5
@@ -37,6 +37,7 @@ func joinMuc(c xmpp.Sender, jid string, muc string, nick string, password string
|
||||
Attrs: stanza.Attrs{
|
||||
From: jid,
|
||||
To: addr,
|
||||
Lang: "en",
|
||||
},
|
||||
Extensions: []stanza.PresExtension{
|
||||
&stanza.MucPresence{},
|
||||
@@ -47,6 +48,7 @@ func joinMuc(c xmpp.Sender, jid string, muc string, nick string, password string
|
||||
Attrs: stanza.Attrs{
|
||||
From: jid,
|
||||
To: addr,
|
||||
Lang: "en",
|
||||
},
|
||||
Extensions: []stanza.PresExtension{
|
||||
&stanza.MucPresence{
|
||||
@@ -162,11 +164,13 @@ func addPEPBookmark(c xmpp.Sender, jid string, name string, nick string, autojoi
|
||||
persist.ValuesList = []string{"true"}
|
||||
options_form.Fields = append(options_form.Fields, persist)
|
||||
|
||||
max_items := new(stanza.Field)
|
||||
max_items.Type = "text-single"
|
||||
max_items.Var = "pubsub#max_items"
|
||||
max_items.ValuesList = []string{"max"}
|
||||
options_form.Fields = append(options_form.Fields, max_items)
|
||||
/*
|
||||
max_items := new(stanza.Field)
|
||||
max_items.Type = "text-single"
|
||||
max_items.Var = "pubsub#max_items"
|
||||
max_items.ValuesList = []string{"max"}
|
||||
options_form.Fields = append(options_form.Fields, max_items)
|
||||
*/
|
||||
|
||||
send_last_published_item := new(stanza.Field)
|
||||
send_last_published_item.Type = "text-single"
|
||||
|
||||
Reference in new issue
Block a user