Calls [WIP]
This commit is contained in:
parent
9c28af848d
commit
94b51a70df
|
@ -469,6 +469,22 @@ func discoToCaps(disco *stanza.DiscoInfo) string {
|
|||
s.WriteString(">")
|
||||
}
|
||||
|
||||
for disco
|
||||
s.WriteString(
|
||||
if disco.Form != nil {
|
||||
fields := make([]*stanza.Field, len(disco.Form.Fields))
|
||||
copy(fields, disco.Form.Fields)
|
||||
sort.Slice(fields, func(a, b *stanza.Field) bool {
|
||||
if a.Var == "FORM_TYPE" {
|
||||
return true
|
||||
}
|
||||
if b.Var == "FORM_TYPE" {
|
||||
return false
|
||||
}
|
||||
return a.Var < b.Var
|
||||
})
|
||||
for _, field := range fields {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return s.String()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue