remove some occurences of mellium jid lib and try to add experimental affiliation displays

This commit is contained in:
2026-02-01 13:49:30 +00:00
parent e87369912d
commit 1dcd55d5ff
5 changed files with 89 additions and 28 deletions

View File

@@ -46,3 +46,14 @@ func joinMuc(c xmpp.Sender, jid string, muc string, nick string) error {
}
return nil
}
// jid MustParse but using gosrc's instead of mellium
// This function will panic if its an invalid JID
func JidMustParse(s string) (*stanza.Jid) {
j, err := stanza.NewJid(s)
if err != nil {
panic(err)
}
return j
}