diff options
author | George Hazan <ghazan@miranda.im> | 2018-06-05 13:55:23 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-06-05 13:55:23 +0300 |
commit | 62a7bb9bc5069310a38c52d5f44d2a61267eed2c (patch) | |
tree | f9ba79193cbda23c3afe6060872f5e69ffac6436 /protocols/VKontakte/src/misc.cpp | |
parent | 11b0f497c9a7d13ea7caba9841d661f72389751c (diff) |
VKontakte:
fix #1392 (access denied on typing for banned contacts)
fix ‘?’ in avatar filenames
Fingerprint: fixed Conversations detect
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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;
}
|