void TAccountXmpp::Contact_PresenceUpdate(const CXmlNode * pXmlNodeStanzaPresence) { Assert(pXmlNodeStanzaPresence != NULL); Assert(pXmlNodeStanzaPresence->FCompareTagName("presence")); // Find the contact to update the presence TContact * pContact = Contact_PFindByJID(pXmlNodeStanzaPresence->PszFindAttributeValueFrom_NZ(), eFindContact_kfCreateNew); Endorse(pContact == NULL); // The <presence> stanza sometimes is just a reply from the server, which means the attribute "from" is not a contact. if (pContact != NULL) pContact->XmppPresenceUpdateIcon(pXmlNodeStanzaPresence); }