From c1b1eff82c3101a6bf00550ff27d4ae6823bbdbd Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Wed, 9 Mar 2016 10:29:47 +0000 Subject: =?UTF-8?q?VKontakte:=20add=20LastSeen=20support=20add=20additiona?= =?UTF-8?q?l=20user=20profile=20fields=20(country,=20city,=20relation,=20i?= =?UTF-8?q?nterests,=20activities,=20music,=20movies,=20tv,=20books,=20gam?= =?UTF-8?q?es,=20quotes)=20add=20hidden=20option=20for=20lang=20(=E2=80=98?= =?UTF-8?q?VKLang=E2=80=99,=20UNICODE)=20version=20bump?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.miranda-ng.org/main/trunk@16449 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/misc.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'protocols/VKontakte/src/misc.cpp') diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 370e4ba624..e94368353d 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -1187,9 +1187,12 @@ void CVkProto::SetInvisible(MCONTACT hContact) if (getWord(hContact, "Status", ID_STATUS_OFFLINE) == ID_STATUS_OFFLINE) { setWord(hContact, "Status", ID_STATUS_INVISIBLE); SetMirVer(hContact, 1); + db_set_w(hContact, "BuddyExpectator", "LastStatus", ID_STATUS_INVISIBLE); debugLogA("CVkProto::SetInvisible %d set ID_STATUS_INVISIBLE", getDword(hContact, "ID", -1)); } - setDword(hContact, "InvisibleTS", time(NULL)); + time_t now = time(NULL); + db_set_dw(hContact, "BuddyExpectator", "LastSeen", (DWORD)now); + setDword(hContact, "InvisibleTS", (DWORD)now); } CMString CVkProto::RemoveBBC(CMString& tszSrc) -- cgit v1.2.3