diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-10-13 19:50:42 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-10-13 19:50:42 +0000 |
| commit | 8394048bdb9136c1054b1bff4b088dd7f63dadb5 (patch) | |
| tree | 1a9fa2633c7fbf110e87505d64916a0b773a4093 /examples/GuiClient/mainDialog.cpp | |
| parent | a6e4cd9f22be063120f45ca7249edb343b3ab27b (diff) | |
| download | qxmpp-8394048bdb9136c1054b1bff4b088dd7f63dadb5.tar.gz | |
update avatar if it changes
Diffstat (limited to 'examples/GuiClient/mainDialog.cpp')
| -rw-r--r-- | examples/GuiClient/mainDialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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(); |
