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_chats.cpp | |
parent | 0d5699dd134818a9f064033862c5268166b5a816 (diff) |
VKontakte:
add option ‘Add message link to messages with attachments’
version bump
Diffstat (limited to 'protocols/VKontakte/src/vk_chats.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_chats.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_chats.cpp b/protocols/VKontakte/src/vk_chats.cpp index 39cd7f2704..f26d6f061f 100644 --- a/protocols/VKontakte/src/vk_chats.cpp +++ b/protocols/VKontakte/src/vk_chats.cpp @@ -308,6 +308,10 @@ void CVkProto::AppendChatMessage(int id, const JSONNode &jnMsg, const JSONNode & wszBody += wszAttachmentDescr;
}
+ if (m_vkOptions.bAddMessageLinkToMesWAtt && (jnAttachments || jnFwdMessages))
+ wszBody += SetBBCString(TranslateT("Message link"), bbcNo, vkbbcUrl,
+ CMStringW(FORMAT, L"https://vk.com/im?sel=c%d&msgid=%d", cc->m_chatid, mid));
+
if (jnMsg["action"]) {
bIsAction = true;
CMStringW wszAction = jnMsg["action"].as_mstring();
|