summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_contacts.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-04-20 19:35:45 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-04-20 19:35:45 +0000
commit2973e11eefbc41935fdac9b6040bd0d360510e05 (patch)
tree1fb57c589636c8e994beba1449ef7fe11d6ce4d8 /protocols/Skype/src/skype_contacts.cpp
parent5b48d799fc3ebbf8bb0e9010f12954db24c91a32 (diff)
refactoring continued
git-svn-id: http://svn.miranda-ng.org/main/trunk@4490 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_contacts.cpp')
-rw-r--r--protocols/Skype/src/skype_contacts.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/Skype/src/skype_contacts.cpp b/protocols/Skype/src/skype_contacts.cpp
index d9ec251ab7..4e9090cbd7 100644
--- a/protocols/Skype/src/skype_contacts.cpp
+++ b/protocols/Skype/src/skype_contacts.cpp
@@ -168,6 +168,7 @@ HANDLE CSkypeProto::GetContactBySid(const wchar_t *sid)
HANDLE CSkypeProto::GetContactFromAuthEvent(HANDLE hEvent)
{
+ // db_event_getContact
DWORD body[3];
DBEVENTINFO dbei = { sizeof(DBEVENTINFO) };
dbei.cbBlob = sizeof(DWORD) * 2;
@@ -242,10 +243,10 @@ void __cdecl CSkypeProto::LoadContactList(void*)
this);
this->commonList->GetContacts(this->contactList);
+ fetch(this->contactList);
for (uint i = 0; i < this->contactList.size(); i++)
{
CContact::Ref contact = this->contactList[i];
- SEObject *obj = contact.fetch();
contact->SetOnContactChangedCallback(
(CContact::OnContactChanged)&CSkypeProto::OnContactChanged,
this);
@@ -255,6 +256,7 @@ void __cdecl CSkypeProto::LoadContactList(void*)
this->UpdateContactAuthState(hContact, contact);
this->UpdateContactStatus(hContact, contact);
+ SEObject *obj = contact.fetch();
this->UpdateProfile(obj, hContact);
this->UpdateProfileAvatar(obj, hContact);
this->UpdateProfileStatusMessage(obj, hContact);