From 53c5011ffb6e8811b48a231c788a6fba81b24e4c Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 22 Apr 2013 19:50:08 +0000 Subject: - 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 --- protocols/Skype/src/skype_dialogs.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'protocols/Skype/src/skype_dialogs.cpp') diff --git a/protocols/Skype/src/skype_dialogs.cpp b/protocols/Skype/src/skype_dialogs.cpp index fc74ad7a24..009e8c690c 100644 --- a/protocols/Skype/src/skype_dialogs.cpp +++ b/protocols/Skype/src/skype_dialogs.cpp @@ -574,11 +574,11 @@ INT_PTR CALLBACK CSkypeProto::InviteToChatProc(HWND hwndDlg, UINT msg, WPARAM wP case CLN_NEWCONTACT: if (param && (nmc->flags & (CLNF_ISGROUP | CLNF_ISINFO)) == 0) { - char *contacts = NULL; + wchar_t *contacts = NULL; if (param->id) { - HANDLE hContact = param->ppro->GetChatRoomByID(param->id); - if (hContact && ::db_get_w(hContact, param->ppro->m_szModuleName, "Status", ID_STATUS_OFFLINE) != ID_STATUS_OFFLINE) + HANDLE hContact = param->ppro->GetChatRoomByCid(param->id); + if (hContact && param->ppro->IsContactOnline(hContact)) { contacts = param->ppro->GetChatUsers(param->id); } @@ -590,11 +590,11 @@ INT_PTR CALLBACK CSkypeProto::InviteToChatProc(HWND hwndDlg, UINT msg, WPARAM wP case CLN_LISTREBUILT: if (param) { - char *contacts = NULL; + wchar_t *contacts = NULL; if (param->id) { - HANDLE hContact = param->ppro->GetChatRoomByID(param->id); - if (hContact && ::db_get_w(hContact, param->ppro->m_szModuleName, "Status", ID_STATUS_OFFLINE) != ID_STATUS_OFFLINE) + HANDLE hContact = param->ppro->GetChatRoomByCid(param->id); + if (hContact && param->ppro->IsContactOnline(hContact)) { contacts = param->ppro->GetChatUsers(param->id); } -- cgit v1.2.3