diff options
author | ElzorFox <elzorfox@ya.ru> | 2017-02-28 13:24:28 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2017-02-28 13:24:28 +0500 |
commit | 8736afe83f8c5aadf130542b2bbf14b2bcf57105 (patch) | |
tree | fcb386290ed5496b5919101141ca116d300dd6db /protocols/VKontakte/src/vk_history.cpp | |
parent | 0d5699dd134818a9f064033862c5268166b5a816 (diff) |
VKontakte:
add option ‘Add message link to messages with attachments’
version bump
Diffstat (limited to 'protocols/VKontakte/src/vk_history.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_history.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_history.cpp b/protocols/VKontakte/src/vk_history.cpp index 794ac8e465..fd27cc8104 100644 --- a/protocols/VKontakte/src/vk_history.cpp +++ b/protocols/VKontakte/src/vk_history.cpp @@ -246,6 +246,10 @@ void CVkProto::OnReceiveHistoryMessages(NETLIBHTTPREQUEST *reply, AsyncHttpReque wszBody += wszAttachmentDescr;
}
+ if (m_vkOptions.bAddMessageLinkToMesWAtt && (jnAttachments || jnFwdMessages))
+ wszBody += SetBBCString(TranslateT("Message link"), m_vkOptions.BBCForAttachments(), vkbbcUrl,
+ CMStringW(FORMAT, L"https://vk.com/im?sel=%d&msgid=%d", uid, mid));
+
T2Utf pszBody(wszBody);
MCONTACT hContact = FindUser(uid, true);
PROTORECVEVENT recv = { 0 };
|