From c74745a44fa9a3010969cb93878c4471ad6dabec Mon Sep 17 00:00:00 2001 From: ElzorFox Date: Fri, 3 Feb 2017 10:54:09 +0500 Subject: =?UTF-8?q?VKontakte:=20ignore=20=E2=80=98Access=20denied:=20can't?= =?UTF-8?q?=20set=20typing=20activity=20for=20this=20peer=E2=80=99=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/VKontakte/src/misc.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'protocols') diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 584929f28d..d57f711f8e 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -277,6 +277,11 @@ bool CVkProto::CheckJsonResult(AsyncHttpRequest *pReq, const JSONNode &jnNode) ConnectionFailed(LOGINERR_WRONGPASSWORD); break; case VKERR_ACCESS_DENIED: + if (jnError["error_msg"] && jnError["error_msg"].as_mstring() == L"Access denied: can't set typing activity for this peer") { + debugLogA("CVkProto::CheckJsonResult VKERR_ACCESS_DENIED (can't set typing activity) - ignore"); + break; + } + if (time(NULL) - getDword("LastAccessTokenTime", 0) > 60 * 60 * 24) { debugLogA("CVkProto::CheckJsonResult VKERR_ACCESS_DENIED (AccessToken fail?)"); ClearAccessToken(); -- cgit v1.2.3