From dbebfb7ec024599a1ef50c11692bb81506bc1347 Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Wed, 10 Jun 2015 21:06:25 +0000 Subject: VKontakte: fix attachments and forward messages in forward messages git-svn-id: http://svn.miranda-ng.org/main/trunk@14108 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/misc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/VKontakte/src') diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 506fcad264..52731675b5 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -1149,7 +1149,7 @@ CMString CVkProto::GetFwdMessages(const JSONNode &jnMessages, BBCSupport iBBC) CMString tszBody(jnMsg["body"].as_mstring()); const JSONNode &jnFwdMessages = jnMsg["fwd_messages"]; - if (!jnFwdMessages) { + if (!jnFwdMessages.isnull()) { CMString tszFwdMessages = GetFwdMessages(jnFwdMessages, m_iBBCForAttachments); if (!tszBody.IsEmpty()) tszFwdMessages = _T("\n") + tszFwdMessages; @@ -1157,7 +1157,7 @@ CMString CVkProto::GetFwdMessages(const JSONNode &jnMessages, BBCSupport iBBC) } const JSONNode &jnAttachments = jnMsg["attachments"]; - if (!jnAttachments) { + if (!jnAttachments.isnull()) { CMString tszAttachmentDescr = GetAttachmentDescr(jnAttachments, m_iBBCForAttachments); if (!tszBody.IsEmpty()) tszAttachmentDescr = _T("\n") + tszAttachmentDescr; -- cgit v1.2.3