summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_profile.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-04-22 19:50:08 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-04-22 19:50:08 +0000
commit53c5011ffb6e8811b48a231c788a6fba81b24e4c (patch)
tree603badaf168e8ed386de0667aa87ca8160b2e3bc /protocols/Skype/src/skype_profile.cpp
parentf35fa0bf945467eb9a5e9e6bdfa52fa59499e7fe (diff)
- some changes in chats (may contains errors)
- fix for profile update git-svn-id: http://svn.miranda-ng.org/main/trunk@4507 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_profile.cpp')
-rw-r--r--protocols/Skype/src/skype_profile.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Skype/src/skype_profile.cpp b/protocols/Skype/src/skype_profile.cpp
index 44ddea1d42..0a2a4915c9 100644
--- a/protocols/Skype/src/skype_profile.cpp
+++ b/protocols/Skype/src/skype_profile.cpp
@@ -28,12 +28,11 @@ SettingItem CSkypeProto::setting[] = {
void CSkypeProto::UpdateProfileAvatar(SEObject *obj, HANDLE hContact)
{
uint newTS = obj->GetUintProp(/* *::P_AVATAR_TIMESTAMP */ 182);
- DWORD oldTS = this->GetSettingDword(hContact, "AvatarTS");
+ DWORD oldTS = ::db_get_dw(hContact, this->m_szModuleName, "AvatarTS", 0);
wchar_t *path = this->GetContactAvatarFilePath(hContact);
SEBinary data = obj->GetBinProp(/* *::P_AVATAR_IMAGE */ 37);
- //if ((newTS > oldTS) || (!newTS && data.size() > 0 && _waccess(path, 0) == -1) || (newTS && _waccess(path, 0) == -1)) //hack for avatars without timestamp
bool hasNewAvatar = newTS > oldTS;
bool isAvatarEmpty = data.size() == 0;
bool isAvatarFileExists = ::PathFileExists(path) > 0;
@@ -336,10 +335,10 @@ 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 > this->GetSettingDword("ProfileTS"))
+ if (newTS > ::db_get_dw(hContact, this->m_szModuleName, "ProfileTS", 0))
{
this->UpdateProfileAboutText(obj, hContact);
this->UpdateProfileBirthday(obj, hContact);
@@ -354,6 +353,7 @@ void CSkypeProto::UpdateProfile(SEObject *obj, HANDLE hContact)
this->UpdateProfilePhone(obj, hContact);
this->UpdateProfileOfficePhone(obj, hContact);
this->UpdateProfileState(obj, hContact);
+ this->UpdateProfileStatusMessage(obj, hContact);
this->UpdateProfileTimezone(obj, hContact);
if (hContact)