summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();