From 40a8877953dbf6e0240efe45bac2c1bf8246735e Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Sat, 17 Dec 2016 13:00:10 +0300 Subject: [PATCH] Remove unuseful dropping auth key Close #1297 --- app/js/lib/mtproto.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/js/lib/mtproto.js b/app/js/lib/mtproto.js index e6835bf3..fe8a0dc0 100644 --- a/app/js/lib/mtproto.js +++ b/app/js/lib/mtproto.js @@ -1247,15 +1247,6 @@ angular.module('izhukov.mtproto', ['izhukov.utils']) return result }, function (error) { - if (error.status == 404 && - (error.data || '').indexOf('nginx/0.3.33') != -1) { - Storage.remove( - 'dc' + self.dcID + '_server_salt', - 'dc' + self.dcID + '_auth_key' - ).then(function () { - AppRuntimeManager.reload() - }) - } if (!error.message && !error.type) { error = angular.extend(baseError, {type: 'NETWORK_BAD_REQUEST', originalError: error}) }