diff options
author | George Hazan <ghazan@miranda.im> | 2018-12-27 23:44:45 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-12-27 23:44:45 +0300 |
commit | 761ddc0d6f84cc02aca25faec927a53743c38c01 (patch) | |
tree | 82383088b51f2c23b36641d3f808d707986e74f5 /protocols | |
parent | f301df43fe8a0089ce581019804d4b3b25ca7ea9 (diff) |
support for user typing
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Icq10/src/proto.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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; } //////////////////////////////////////////////////////////////////////////////////////// |