summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-11-17 19:48:54 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-11-17 19:48:54 +0000
commit9a7fd4befd52e57a8ccd624cf7628b532bcd699a (patch)
tree79d3f50354d2f209d3485f3867cbeca071b0f9ff
parent442158bd8a95e57dc778f34e9bf5c5f6678f019a (diff)
fixed status message saving, coz P_MOOD_TIMESTAMP NOT SET FOR CONTACTS
git-svn-id: http://svn.miranda-ng.org/main/trunk@2340 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/Skype/src/skype_contacts.cpp23
1 files changed, 8 insertions, 15 deletions
diff --git a/protocols/Skype/src/skype_contacts.cpp b/protocols/Skype/src/skype_contacts.cpp
index a6adcb36fa..5d497ece2e 100644
--- a/protocols/Skype/src/skype_contacts.cpp
+++ b/protocols/Skype/src/skype_contacts.cpp
@@ -269,21 +269,14 @@ void CSkypeProto::UpdateContactStatus(HANDLE hContact, CContact::Ref contact)
void CSkypeProto::UpdateContactStatusMessage(HANDLE hContact, CContact::Ref contact)
{
- uint newTS = 0;
- contact->GetPropMoodTimestamp(newTS);
- DWORD oldTS = this->GetSettingDword(hContact, "XStatusTS");
- if (newTS > oldTS)
- {
- SEString data;
- contact->GetPropMoodText(data);
- wchar_t* status = ::mir_utf8decodeW((const char*)data);
- if (wcscmp(status, L"") == 0)
- this->DeleteSetting(hContact, "XStatusMsg");
- else
- this->SetSettingString(hContact, "XStatusMsg", status);
- ::mir_free(status);
- this->SetSettingDword(hContact, "XStatusTS", newTS);
- }
+ SEString data;
+ contact->GetPropMoodText(data);
+ wchar_t* status = ::mir_utf8decodeW((const char*)data);
+ if (wcscmp(status, L"") == 0)
+ this->DeleteSetting(hContact, "XStatusMsg");
+ else
+ this->SetSettingString(hContact, "XStatusMsg", status);
+ ::mir_free(status);
}
void CSkypeProto::UpdateContactTimezone(HANDLE hContact, CContact::Ref contact)