diff options
Diffstat (limited to 'protocols/VKontakte/src')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 4 | ||||
-rw-r--r-- | protocols/VKontakte/src/vk_thread.cpp | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 7cb2638cf4..437bdfe664 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -232,8 +232,10 @@ void CVkProto::SetAllContactStatuses(int iStatus) else if (getWord(hContact, "Status", 0) != iStatus)
setWord(hContact, "Status", iStatus);
- if (iStatus == ID_STATUS_OFFLINE)
+ if (iStatus == ID_STATUS_OFFLINE) {
SetMirVer(hContact, -1);
+ db_unset(hContact, m_szModuleName, "ListeningTo");
+ }
}
}
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index e5f358da48..01ebdf5e01 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -478,9 +478,10 @@ void CVkProto::OnReceiveUserInfo(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pRe || (iContactStatus == ID_STATUS_INVISIBLE && time(NULL) - getDword(hContact, "InvisibleTS", 0) >= m_iInvisibleInterval * 60)) {
setWord(hContact, "Status", ID_STATUS_OFFLINE);
SetMirVer(hContact, -1);
+ db_unset(hContact, m_szModuleName, "ListeningTo");
}
- db_unset(hContact, m_szModuleName, "ListeningTo");
}
+
arContacts.destroy();
AddFeedSpecialUser();
@@ -896,6 +897,8 @@ void CVkProto::PollUpdates(JSONNODE *pUpdates) uid = -json_as_int(json_at(pChild, 1));
if ((hContact = FindUser(uid)) != NULL)
setWord(hContact, "Status", ID_STATUS_OFFLINE);
+ db_unset(hContact, m_szModuleName, "ListeningTo");
+ SetMirVer(hContact, -1);
break;
case VKPOLL_USR_UTN:
|