diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-11-12 12:54:36 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-11-12 12:54:36 +0000 |
commit | 1be8fd09b95b8450fdd5a1bc707b5d40219986cf (patch) | |
tree | fe91b0a2a6bbee2e5b57056c3f4479d7170c1670 /protocols/VKontakte/src/misc.cpp | |
parent | b4a3c65ee5bd561e915f05c9514f78c51b936b0c (diff) |
VKontakte:
add typing notification for muc
upgrade VK_API version to 5.40
add ‘caption’ for link attachments
version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@15715 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 7285cbe74d..5710d707a3 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -1019,12 +1019,16 @@ CMString CVkProto::GetAttachmentDescr(const JSONNode &jnAttachments, BBCSupport CMString tszUrl(jnLink["url"].as_mstring());
CMString tszTitle(jnLink["title"].as_mstring());
+ CMString tszCaption(jnLink["caption"].as_mstring());
CMString tszDescription(jnLink["description"].as_mstring());
res.AppendFormat(_T("%s: %s"),
SetBBCString(TranslateT("Link"), iBBC, vkbbcB),
SetBBCString(tszTitle, iBBC, vkbbcUrl, tszUrl));
-
+
+ if (!tszDescription.IsEmpty())
+ res.AppendFormat(_T("\n\t%s"), SetBBCString(tszCaption, iBBC, vkbbcI));
+
if (jnLink["photo"])
res.AppendFormat(_T("\n\t%s"), GetVkPhotoItem(jnLink["photo"], iBBC));
|