summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-08-20 10:05:20 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-08-20 10:05:20 (GMT)
commit61fed862adef959508558161298e6d11e5cc0903 (patch)
tree5142a2e3d65db5e285b3811b0b4efb4a19bbd0b8 /Swift
parentbed742cc44107892be4a246037a6216058a4cc56 (diff)
downloadswift-61fed862adef959508558161298e6d11e5cc0903.zip
swift-61fed862adef959508558161298e6d11e5cc0903.tar.bz2
Only add one vcard and caps element to each presence stanza.
Resolves: #524
Diffstat (limited to 'Swift')
-rw-r--r--Swift/Controllers/MainController.cpp4
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();