From 4451fe1381e185036a7037b3a0cda50de5b9d9b3 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sat, 11 Apr 2015 10:33:28 +0000 Subject: SkypeWeb: Warning fix. git-svn-id: http://svn.miranda-ng.org/main/trunk@12762 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/requests/messages.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols/SkypeWeb/src/requests') diff --git a/protocols/SkypeWeb/src/requests/messages.h b/protocols/SkypeWeb/src/requests/messages.h index fe9361a29f..663a075a7b 100644 --- a/protocols/SkypeWeb/src/requests/messages.h +++ b/protocols/SkypeWeb/src/requests/messages.h @@ -57,7 +57,7 @@ public: class SendTypingRequest : public HttpRequest { public: - SendTypingRequest(const char *regToken, const char *username, bool bstate, const char *server = SKYPE_ENDPOINTS_HOST) : + SendTypingRequest(const char *regToken, const char *username, int iState, const char *server = SKYPE_ENDPOINTS_HOST) : HttpRequest(REQUEST_POST, FORMAT, "%s/v1/users/ME/conversations/8:%s/messages", server, ptrA(mir_urlEncode(username))) { Headers @@ -65,8 +65,7 @@ public: << FORMAT_VALUE("RegistrationToken", "registrationToken=%s", regToken) << CHAR_VALUE("Content-Type", "application/json; charset = UTF-8"); CMStringA state; - if (bstate) state = "Control/Typing"; - else state = "Control/ClearTyping"; + state = (iState == PROTOTYPE_SELFTYPING_ON) ? "Control/Typing" : "Control/ClearTyping"; CMStringA data; data.AppendFormat("{\"clienmessageid\":%lld, \"content\":\"\", \"messagetype\":\"%s\", \"contenttype\":\"text\"}", time(NULL), state); -- cgit v1.2.3