summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_groupchat.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-08-15 20:51:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-08-15 20:51:04 +0300
commit319f0c53660aa80d357715881fd4b8068cdb73ca (patch)
tree02887301dfa363972cf555695621302e4b8f876d /protocols/JabberG/src/jabber_groupchat.cpp
parent55d19a5ced6bf185c96a13b4498121405fef8662 (diff)
Jabber: ability to load group chat avatars (once in a day)
Diffstat (limited to 'protocols/JabberG/src/jabber_groupchat.cpp')
-rw-r--r--protocols/JabberG/src/jabber_groupchat.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/JabberG/src/jabber_groupchat.cpp b/protocols/JabberG/src/jabber_groupchat.cpp
index 03d7d5c0a1..838c0f8d71 100644
--- a/protocols/JabberG/src/jabber_groupchat.cpp
+++ b/protocols/JabberG/src/jabber_groupchat.cpp
@@ -1008,6 +1008,11 @@ void CJabberProto::GroupchatProcessMessage(const TiXmlElement *node)
if (resource != nullptr && *++resource == '\0')
resource = nullptr;
+ for (auto *x : TiXmlFilter(node, "x"))
+ if (!mir_strcmp(XmlGetAttr(x, "xmlns"), JABBER_FEAT_MUC_USER))
+ if (XmlGetChildByTag(x, "status", "code", "104"))
+ SendGetVcard(item->hContact);
+
if ((n = XmlFirstChild(node, "subject")) != nullptr) {
msgText = n->GetText();
if (msgText == nullptr || msgText[0] == '\0')