From 409484903558dfc9f7a6f8c8ead2fe47ff2f2dcf Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 3 Jun 2020 11:27:43 +0300 Subject: Jabber: fix for advanced compilance with XEP-0045 --- protocols/JabberG/src/jabber_groupchat.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/protocols/JabberG/src/jabber_groupchat.cpp b/protocols/JabberG/src/jabber_groupchat.cpp index ccc3783881..7b5cd15de6 100644 --- a/protocols/JabberG/src/jabber_groupchat.cpp +++ b/protocols/JabberG/src/jabber_groupchat.cpp @@ -925,13 +925,9 @@ void CJabberProto::GroupchatProcessPresence(const TiXmlElement *node) if (hContact != 0) setWord(hContact, "Status", status); - // Check - if (bRoomCreated) { - if (XmlGetChildByTag(node, "created", "xmlns", JABBER_FEAT_MUC_OWNER)) - // A new room just created by me - // Request room config - m_ThreadInfo->send(XmlNodeIq(AddIQ(&CJabberProto::OnIqResultGetMuc, JABBER_IQ_TYPE_GET, item->jid)) << XQUERY(JABBER_FEAT_MUC_OWNER)); - } + // A new room just created by me. Request room config + if (bRoomCreated) + m_ThreadInfo->send(XmlNodeIq(AddIQ(&CJabberProto::OnIqResultGetMuc, JABBER_IQ_TYPE_GET, item->jid)) << XQUERY(JABBER_FEAT_MUC_OWNER)); } // leaving room -- cgit v1.2.3