From cf3dcf6b3fb88e11cc28717c0020f6c11003a4af Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Thu, 9 Apr 2015 15:48:33 +0000 Subject: SkypeWeb: Auth request in context menu is already work. git-svn-id: http://svn.miranda-ng.org/main/trunk@12701 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_contacts.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'protocols/SkypeWeb/src/skype_contacts.cpp') diff --git a/protocols/SkypeWeb/src/skype_contacts.cpp b/protocols/SkypeWeb/src/skype_contacts.cpp index 5e779d545a..c33e1c5dca 100644 --- a/protocols/SkypeWeb/src/skype_contacts.cpp +++ b/protocols/SkypeWeb/src/skype_contacts.cpp @@ -225,11 +225,23 @@ void CSkypeProto::LoadContactList(const NETLIBHTTPREQUEST *response) INT_PTR CSkypeProto::OnRequestAuth(WPARAM hContact, LPARAM lParam) { + if (hContact == INVALID_CONTACT_ID) + return 1; + + ptrA token(getStringA("TokenSecret")); + ptrA skypename(getStringA(hContact, SKYPE_SETTINGS_ID)); + PushRequest(new AddContactRequest(token, skypename)); return 0; } INT_PTR CSkypeProto::OnGrantAuth(WPARAM hContact, LPARAM) { + if (hContact == INVALID_CONTACT_ID) + return 1; + + ptrA token(getStringA("TokenSecret")); + ptrA skypename(getStringA(hContact, SKYPE_SETTINGS_ID)); + PushRequest(new AuthAcceptRequest(token, skypename)); return 0; } -- cgit v1.2.3