diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/VKontakte/src/vk_thread.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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"));
|