summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skypekit/contact.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Skype/src/skypekit/contact.cpp')
-rw-r--r--protocols/Skype/src/skypekit/contact.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/protocols/Skype/src/skypekit/contact.cpp b/protocols/Skype/src/skypekit/contact.cpp
index 07104e8dd7..622023a040 100644
--- a/protocols/Skype/src/skypekit/contact.cpp
+++ b/protocols/Skype/src/skypekit/contact.cpp
@@ -27,7 +27,16 @@ SEString CContact::GetNick()
if (availability == CContact::SKYPEOUT)
this->GetPropPstnnumber(result);
else
- this->GetPropFullname(result);
+ {
+ this->GetPropDisplayname(result);
+ if (this->proto && this->proto->login)
+ {
+ SEString sid;
+ this->GetIdentity(sid);
+ if (sid.equals(result))
+ this->GetPropFullname(result);
+ }
+ }
return result;
}