From 9a7fd4befd52e57a8ccd624cf7628b532bcd699a Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 17 Nov 2012 19:48:54 +0000 Subject: 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 --- protocols/Skype/src/skype_contacts.cpp | 23 ++++++++--------------- 1 file 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) -- cgit v1.2.3