summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests/messages.h
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-04-20 12:00:43 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-04-20 12:00:43 +0000
commit03a7f0b7ef9a57fd94821ffe3ee2d54574d6d986 (patch)
treef986be1a1cf6a31d9a7a67f17b65e62b4a70b8a8 /protocols/SkypeWeb/src/requests/messages.h
parent92b9c195e5724e1bee7a85217332a72dc96309e8 (diff)
SkypeWeb: Small optimization
git-svn-id: http://svn.miranda-ng.org/main/trunk@12965 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/requests/messages.h')
-rw-r--r--protocols/SkypeWeb/src/requests/messages.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/requests/messages.h b/protocols/SkypeWeb/src/requests/messages.h
index 3aba9a4fc4..14877cf9a6 100644
--- a/protocols/SkypeWeb/src/requests/messages.h
+++ b/protocols/SkypeWeb/src/requests/messages.h
@@ -21,8 +21,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
class SendMessageRequest : public HttpRequest
{
public:
- SendMessageRequest(const char *regToken, const char *username, time_t timestamp, const char *message, const char *server = SKYPE_ENDPOINTS_HOST) :
- HttpRequest(REQUEST_POST, FORMAT, "%s/v1/users/ME/conversations/8:%s/messages", server, username)
+ SendMessageRequest(const char *regToken, const char *username, time_t timestamp, const char *message, const char *server = SKYPE_ENDPOINTS_HOST, bool isChat = false) :
+ HttpRequest(REQUEST_POST, FORMAT, "%s/v1/users/ME/conversations/%s:%s/messages", server, isChat?"19":"8", username)
{
Headers
<< CHAR_VALUE("Accept", "application/json, text/javascript")