From c912ccc737afe8e4b2038b632cd9bb1f67bcf5e7 Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Wed, 22 Oct 2014 10:15:25 +0000 Subject: VKontakte: ListeningTo contactlist icon support git-svn-id: http://svn.miranda-ng.org/main/trunk@10844 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_thread.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'protocols/VKontakte/src/vk_thread.cpp') diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index 59b96d9d5f..78b5e6b9e5 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -336,8 +336,13 @@ MCONTACT CVkProto::SetContactInfo(JSONNODE* pItem, bool flag, bool self) tszValue = json_as_string(json_get(pItem, "status")); CMString tszOldStatus(db_get_tsa(hContact, hContact ? "CList" : m_szModuleName, "StatusMsg")); - if (tszValue != tszOldStatus) + if (tszValue != tszOldStatus){ db_set_ts(hContact, hContact ? "CList" : m_szModuleName, "StatusMsg", tszValue.GetBuffer()); + if (json_get(pItem, "status_audio")) + db_set_ts(hContact, m_szModuleName, "ListeningTo", tszValue.GetBuffer()); + else + db_unset(hContact, m_szModuleName, "ListeningTo"); + } if ((hContact == NULL) && m_bOne){ setTString("OldStatusMsg", db_get_tsa(0, m_szModuleName, "StatusMsg")); -- cgit v1.2.3