From 52741a247b2f01c0495f2527e0939755d3348fc3 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sat, 18 Apr 2015 07:05:03 +0000 Subject: SkypeWeb: Optimizations. git-svn-id: http://svn.miranda-ng.org/main/trunk@12899 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_proto.cpp | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'protocols/SkypeWeb/src/skype_proto.cpp') diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp index 48f3713c28..4cee50e5f6 100644 --- a/protocols/SkypeWeb/src/skype_proto.cpp +++ b/protocols/SkypeWeb/src/skype_proto.cpp @@ -210,10 +210,8 @@ int CSkypeProto::SetStatus(int iNewStatus) else { // set status - ptrA regToken(getStringA("registrationToken")); - ptrA endpoint(getStringA("endpointId")); - PushRequest(new SetStatusRequest(regToken, MirandaToSkypeStatus(m_iDesiredStatus)), &CSkypeProto::OnStatusChanged); - PushRequest(new SendCapabilitiesRequest(regToken, endpoint)); + SendRequest(new SetStatusRequest(RegToken, MirandaToSkypeStatus(m_iDesiredStatus)), &CSkypeProto::OnStatusChanged); + PushRequest(new SendCapabilitiesRequest(RegToken, EndpointId)); } } @@ -223,16 +221,7 @@ int CSkypeProto::SetStatus(int iNewStatus) int CSkypeProto::UserIsTyping(MCONTACT hContact, int type) { - PushRequest - ( - new SendTypingRequest - ( - ptrA(getStringA("registrationToken")), - ptrA(getStringA(hContact, SKYPE_SETTINGS_ID)), - type, - ptrA(getStringA("Server")) - ) - ); + SendRequest(new SendTypingRequest(RegToken, ptrA(getStringA(hContact, SKYPE_SETTINGS_ID)), type, Server)); return 0; } -- cgit v1.2.3