summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_chats.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2015-10-23 09:18:49 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2015-10-23 09:18:49 +0000
commit676c1d3d4bc2d6a52cc71ec14ef7e7b8b9817564 (patch)
tree894bc4f4b5f4d3de1e4bc8e13dd1de07fecbe5f4 /protocols/VKontakte/src/vk_chats.cpp
parent169df25f12faff23b8fd8c20e057af715a2777ca (diff)
VKontakte:
popup & sound support for newsfeed add hidden option for return chat message version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@15600 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_chats.cpp')
-rw-r--r--protocols/VKontakte/src/vk_chats.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_chats.cpp b/protocols/VKontakte/src/vk_chats.cpp
index d5b58469e2..7c13e27038 100644
--- a/protocols/VKontakte/src/vk_chats.cpp
+++ b/protocols/VKontakte/src/vk_chats.cpp
@@ -659,9 +659,10 @@ INT_PTR __cdecl CVkProto::OnJoinChat(WPARAM hContact, LPARAM)
if (chat_id == -1)
return 1;
+ CMString tszReturnChatMessage(ptrT(getTStringA("ReturnChatMessage")));
AsyncHttpRequest *pReq = new AsyncHttpRequest(this, REQUEST_POST, "/method/messages.send.json", true, &CVkProto::OnSendChatMsg, AsyncHttpRequest::rpHigh)
<< INT_PARAM("chat_id", chat_id)
- << TCHAR_PARAM("message", TranslateT("I'm back"))
+ << TCHAR_PARAM("message", tszReturnChatMessage.IsEmpty() ? TranslateT("I'm back") : tszReturnChatMessage)
<< VER_API;
pReq->AddHeader("Content-Type", "application/x-www-form-urlencoded");
Push(pReq);