diff options
Diffstat (limited to 'Swift/Controllers/NickResolver.cpp')
-rw-r--r-- | Swift/Controllers/NickResolver.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Swift/Controllers/NickResolver.cpp b/Swift/Controllers/NickResolver.cpp index 8faada9..5029b7d 100644 --- a/Swift/Controllers/NickResolver.cpp +++ b/Swift/Controllers/NickResolver.cpp @@ -42,8 +42,7 @@ String NickResolver::jidToNick(const JID& jid) { return xmppRoster_->getNameForJID(jid); } - std::map<JID, String>::const_iterator it = map_.find(jid); - return (it == map_.end()) ? jid.toBare() : it->second; + return jid.toBare(); } void NickResolver::handleVCardReceived(const JID& jid, VCard::ref ownVCard) { |