From 8394048bdb9136c1054b1bff4b088dd7f63dadb5 Mon Sep 17 00:00:00 2001 From: Manjeet Dahiya Date: Wed, 13 Oct 2010 19:50:42 +0000 Subject: update avatar if it changes --- examples/GuiClient/mainDialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/GuiClient/mainDialog.cpp') diff --git a/examples/GuiClient/mainDialog.cpp b/examples/GuiClient/mainDialog.cpp index 922e4b13..9688cb10 100644 --- a/examples/GuiClient/mainDialog.cpp +++ b/examples/GuiClient/mainDialog.cpp @@ -244,6 +244,10 @@ void mainDialog::presenceChanged(const QString& bareJid, const QString& resource m_capabilitiesCache.requestInfo(jid, nodeVer); } + if(m_vCardCache.getPhotoHash(bareJid) != pre.photoHash()) + { + m_vCardCache.requestVCard(bareJid); + } // QXmppPresence::Type presenceType = presences.begin().value().getType(); -- cgit v1.2.3