summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2017-02-03 10:54:09 +0500
committerElzorFox <elzorfox@ya.ru>2017-02-03 10:54:49 +0500
commitc74745a44fa9a3010969cb93878c4471ad6dabec (patch)
treee86354058f1d2987bee1a19278172a4a1c563207 /protocols
parent21dc4a9453ed2a837e6a8d6b45ccd932d26fdfe8 (diff)
VKontakte: ignore ‘Access denied: can't set typing activity for this peer’ error
Diffstat (limited to 'protocols')
-rw-r--r--protocols/VKontakte/src/misc.cpp5
1 files changed, 5 insertions, 0 deletions
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();