summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-10-08 14:28:18 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-10-08 14:28:18 (GMT)
commit958928d499ceb846b185d75ba17d48f3dd962cef (patch)
tree80f55ed0c059a16a18261105b82bc44712fb553d /Swift/Controllers
parentc179a8dacdbef5bb75e2ad61756f5fe1e2f2e317 (diff)
downloadswift-contrib-958928d499ceb846b185d75ba17d48f3dd962cef.zip
swift-contrib-958928d499ceb846b185d75ba17d48f3dd962cef.tar.bz2
Regrouping nick-less contacts now correctly renders them as a JID in the roster.
Resolves: #606
Diffstat (limited to 'Swift/Controllers')
-rw-r--r--Swift/Controllers/RosterController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/Controllers/RosterController.cpp b/Swift/Controllers/RosterController.cpp
index 55c99c5..15ed6a4 100644
--- a/Swift/Controllers/RosterController.cpp
+++ b/Swift/Controllers/RosterController.cpp
@@ -140,7 +140,7 @@ void RosterController::handleOnJIDUpdated(const JID& jid, const String& oldName,
}
foreach(const String& group, groups) {
if (std::find(oldGroups.begin(), oldGroups.end(), group) == oldGroups.end()) {
- roster_->addContact(jid, jid, xmppRoster_->getNameForJID(jid), group, avatarManager_->getAvatarPath(jid).string());
+ roster_->addContact(jid, jid, name, group, avatarManager_->getAvatarPath(jid).string());
}
}
foreach(const String& group, oldGroups) {