diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2013-04-26 19:41:06 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2013-04-26 19:41:06 +0000 |
commit | bed36b071fe082d34e5961bb5105e662f17aa7c6 (patch) | |
tree | 2b83b5c433675fa81c316fb336cd0377a5953ecd /protocols/Skype/src/skype_profile.cpp | |
parent | a3422fd14b9201e7bfc6ecb28df71ed68c39c228 (diff) |
- sync was returned
- fixed contacts nick updating
- fixed eternal "connecting"
git-svn-id: http://svn.miranda-ng.org/main/trunk@4539 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_profile.cpp')
-rw-r--r-- | protocols/Skype/src/skype_profile.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/protocols/Skype/src/skype_profile.cpp b/protocols/Skype/src/skype_profile.cpp index 412a6fc04c..65eea35410 100644 --- a/protocols/Skype/src/skype_profile.cpp +++ b/protocols/Skype/src/skype_profile.cpp @@ -263,6 +263,14 @@ void CSkypeProto::UpdateProfileMobilePhone(SEObject *obj, HANDLE hContact) ::mir_free(phone);
}
+void CSkypeProto::UpdateProfileNickName(SEObject *obj, HANDLE hContact)
+{
+ wchar_t *nick = ::mir_utf8decodeW(obj->GetStrProp(/* *::P_DISPLAYNAME */ 21));
+ if (::wcslen(nick))
+ ::db_set_ws(hContact, this->m_szModuleName, "Nick", nick);
+ ::mir_free(nick);
+}
+
void CSkypeProto::UpdateProfilePhone(SEObject *obj, HANDLE hContact)
{
wchar_t* phone = ::mir_a2u(obj->GetStrProp(/* *::P_PHONE_HOME */ 13));
@@ -335,7 +343,7 @@ void CSkypeProto::UpdateProfileTimezone(SEObject *obj, HANDLE hContact) void CSkypeProto::UpdateProfile(SEObject *obj, HANDLE hContact)
{
- this->UpdateProfileAvatar(obj, hContact);
+ this->UpdateProfileAvatar(obj, hContact);
uint newTS = obj->GetUintProp(/* *::P_PROFILE_TIMESTAMP */ 19);
if (newTS > ::db_get_dw(hContact, this->m_szModuleName, "ProfileTS", 0))
|