From 761ddc0d6f84cc02aca25faec927a53743c38c01 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 27 Dec 2018 23:44:45 +0300 Subject: support for user typing --- protocols/Icq10/src/proto.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/protocols/Icq10/src/proto.cpp b/protocols/Icq10/src/proto.cpp index afff41cd90..cf9a226bb0 100644 --- a/protocols/Icq10/src/proto.cpp +++ b/protocols/Icq10/src/proto.cpp @@ -361,7 +361,13 @@ int CIcqProto::SetAwayMsg(int status, const wchar_t* msg) int CIcqProto::UserIsTyping(MCONTACT hContact, int type) { - return 1; + auto *pReq = new AsyncHttpRequest(CONN_MAIN, REQUEST_GET, ICQ_API_SERVER "/im/setTyping"); + pReq->flags |= NLHRF_NODUMPSEND; + pReq << CHAR_PARAM("f", "json") << CHAR_PARAM("aimsid", m_aimsid) << CHAR_PARAM("f", "json") + << INT_PARAM("t", getDword(hContact, "UIN")) << CHAR_PARAM("r", pReq->m_reqId) + << CHAR_PARAM("typingStatus", (type == PROTOTYPE_SELFTYPING_ON) ? "typing" : "typed"); + Push(pReq); + return 0; } //////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3