summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2019-04-22 14:21:53 +0500
committerElzorFox <elzorfox@ya.ru>2019-04-22 14:21:53 +0500
commit1d8ddff2c618806418969f236a958cb5e0b7610c (patch)
treec9db81ca231779e7905d8fc7613aa02dfd0e4ac3 /protocols/VKontakte/src
parent15c5c464cb94151a5ac6b4f0b1925eb0a390cca0 (diff)
VKontakte: audio message attachments type support
Diffstat (limited to 'protocols/VKontakte/src')
-rw-r--r--protocols/VKontakte/src/misc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp
index 6b299829a4..1c61b92f4d 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -1122,7 +1122,7 @@ CMStringW CVkProto::GetAttachmentDescr(const JSONNode &jnAttachments, BBCSupport
CMStringW wszTitle(jnDoc["title"].as_mstring());
CMStringW wszUrl(jnDoc["url"].as_mstring());
res.AppendFormat(L"%s: %s",
- SetBBCString(TranslateT("Document"), iBBC, vkbbcB).c_str(),
+ jnDoc["type"].as_int() == 5 ? SetBBCString(TranslateT("Audio message"), iBBC, vkbbcB).c_str() : SetBBCString(TranslateT("Document"), iBBC, vkbbcB).c_str(),
SetBBCString(wszTitle.IsEmpty() ? TranslateT("Link") : wszTitle, iBBC, vkbbcUrl, wszUrl).c_str());
}
else if (wszType == L"wall") {