diff options
author | ElzorFox <elzorfox@ya.ru> | 2017-05-18 16:07:00 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2017-05-18 16:07:00 +0500 |
commit | 184a5605996658f20c65d3b89f9c155b12e62585 (patch) | |
tree | 4dee1a6cb3d17efe721c87a99ef7c24c069e8010 /protocols/VKontakte/src/misc.cpp | |
parent | de4f7d73f68c0ae87180afa6e83649b2d1a41b17 (diff) |
VKontakte:
fix random server delivery processing
show error popups for sending messages errors
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index e81995c79a..16dd759805 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -334,6 +334,15 @@ bool CVkProto::CheckJsonResult(AsyncHttpRequest *pReq, const JSONNode &jnNode) case VKERR_ACC_WALL_POST_DENIED:
MsgPopup(NULL, TranslateT("Access to adding post denied"), TranslateT("Error"), true);
break;
+ case VKERR_CANT_SEND_USER_ON_BLACKLIST:
+ MsgPopup(NULL, TranslateT("Can\'t send messages for users from blacklist"), TranslateT("Error"), true);
+ break;
+ case VKERR_CANT_SEND_USER_WITHOUT_DIALOGS:
+ MsgPopup(NULL, TranslateT("Can\'t send messages for users without dialogs"), TranslateT("Error"), true);
+ break;
+ case VKERR_CANT_SEND_YOU_ON_BLACKLIST:
+ MsgPopup(NULL, TranslateT("Can\'t send messages to this user due to their privacy settings"), TranslateT("Error"), true);
+ break;
case VKERR_COULD_NOT_SAVE_FILE:
case VKERR_INVALID_ALBUM_ID:
case VKERR_INVALID_SERVER:
@@ -345,7 +354,8 @@ bool CVkProto::CheckJsonResult(AsyncHttpRequest *pReq, const JSONNode &jnNode) case VKERR_HIMSELF_AS_FRIEND:
case VKERR_YOU_ON_BLACKLIST:
case VKERR_USER_ON_BLACKLIST:
- // See CVkProto::SendFileFiled
+
+ // See also CVkProto::SendFileFiled
break;
}
|