From 62a7bb9bc5069310a38c52d5f44d2a61267eed2c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 5 Jun 2018 13:55:23 +0300 Subject: =?UTF-8?q?VKontakte:=20fix=20#1392=20(access=20denied=20on=20typi?= =?UTF-8?q?ng=20for=20banned=20contacts)=20fix=20=E2=80=98=3F=E2=80=99=20i?= =?UTF-8?q?n=20avatar=20filenames?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fingerprint: fixed Conversations detect --- protocols/VKontakte/src/misc.cpp | 4 +++- 1 file changed, 3 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 79e9066c07..5330ddec60 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -283,7 +283,9 @@ 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") { + if ((jnError["error_msg"] && jnError["error_msg"].as_mstring() == L"Access denied: can't set typing activity for this peer") + || (pReq->m_szUrl.Find("messages.setActivity.json") > -1) + ) { debugLogA("CVkProto::CheckJsonResult VKERR_ACCESS_DENIED (can't set typing activity) - ignore"); break; } -- cgit v1.2.3