mirror of
https://dev.narayana.im/narayana/telegabber.git
synced 2026-08-05 12:17:06 +00:00
Fix regression in MUC list discovery
This commit is contained in:
parent
f9f2bc8b83
commit
46ecab1db5
1 changed files with 3 additions and 3 deletions
|
|
@ -831,8 +831,8 @@ func handleGetDiscoInfo(s xmpp.Sender, iq *stanza.IQ, di *stanza.DiscoInfo) {
|
|||
bare, _, fromOk := gateway.SplitJID(iq.From)
|
||||
if fromOk {
|
||||
session, sessionOk := sessions[bare]
|
||||
if sessionOk && session.Session.MUC && toIsGroup {
|
||||
if toOk {
|
||||
if sessionOk && session.Session.MUC {
|
||||
if toOk && toIsGroup {
|
||||
chat, _, err := session.GetContactByID(toID, nil)
|
||||
if err == nil && session.IsGroup(chat) {
|
||||
isMuc = true
|
||||
|
|
@ -868,7 +868,7 @@ func handleGetDiscoInfo(s xmpp.Sender, iq *stanza.IQ, di *stanza.DiscoInfo) {
|
|||
|
||||
disco.Form = stanza.NewForm(fields, "result")
|
||||
}
|
||||
} else {
|
||||
} else if !toOk {
|
||||
disco.AddFeatures(
|
||||
stanza.NSDiscoItems,
|
||||
"http://jabber.org/protocol/muc#stable_id",
|
||||
|
|
|
|||
Loading…
Reference in a new issue