diff options
author | George Hazan <ghazan@miranda.im> | 2020-06-03 11:27:43 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-06-03 11:27:43 +0300 |
commit | 409484903558dfc9f7a6f8c8ead2fe47ff2f2dcf (patch) | |
tree | 92918ef46236972898e919555ff60c06909ea3f9 | |
parent | 4985279039462adafdac1c9826b54a6b36dba5f6 (diff) |
Jabber: fix for advanced compilance with XEP-0045
-rw-r--r-- | protocols/JabberG/src/jabber_groupchat.cpp | 10 |
1 files 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 <created/>
- 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
|