diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-08-20 10:05:20 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-08-20 10:05:20 (GMT) |
commit | 61fed862adef959508558161298e6d11e5cc0903 (patch) | |
tree | 5142a2e3d65db5e285b3811b0b4efb4a19bbd0b8 | |
parent | bed742cc44107892be4a246037a6216058a4cc56 (diff) | |
download | swift-contrib-61fed862adef959508558161298e6d11e5cc0903.zip swift-contrib-61fed862adef959508558161298e6d11e5cc0903.tar.bz2 |
Only add one vcard and caps element to each presence stanza.
Resolves: #524
-rw-r--r-- | Swift/Controllers/MainController.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp index 4e72cc6..5502640 100644 --- a/Swift/Controllers/MainController.cpp +++ b/Swift/Controllers/MainController.cpp @@ -285,9 +285,9 @@ void MainController::sendPresence(boost::shared_ptr<Presence> presence) { // Add information and send if (!vCardPhotoHash_.isEmpty()) { - presence->addPayload(boost::shared_ptr<VCardUpdate>(new VCardUpdate(vCardPhotoHash_))); + presence->updatePayload(boost::shared_ptr<VCardUpdate>(new VCardUpdate(vCardPhotoHash_))); } - presence->addPayload(capsInfo_); + presence->updatePayload(capsInfo_); presenceSender_->sendPresence(presence); if (presence->getType() == Presence::Unavailable) { logout(); |