remove validation for ios and wp
This commit is contained in:
parent
36b2d28048
commit
7c0c82124d
2 changed files with 5 additions and 3 deletions
|
|
@ -30,7 +30,6 @@ angular.module('copayApp.services').factory('ongoingProcess', function($log, $ti
|
|||
'sendingTx': gettext('Sending transaction'),
|
||||
'signingTx': gettext('Signing transaction'),
|
||||
'sweepingWallet': gettext('Sweeping Wallet...'),
|
||||
'validatingWallet': gettext('Validating wallet integrity...'),
|
||||
'validatingWords': gettext('Validating recovery phrase...'),
|
||||
'loadingTxInfo': gettext('Loading transaction info...'),
|
||||
'sendingFeedback': gettext('Sending feedback...'),
|
||||
|
|
|
|||
|
|
@ -207,6 +207,9 @@ angular.module('copayApp.services')
|
|||
}, delay);
|
||||
};
|
||||
|
||||
var shouldSkipValidation = function() {
|
||||
return root.profile.isChecked(platformInfo.ua, credentials.walletId) || isIOS || isWP;
|
||||
}
|
||||
// Used when reading wallets from the profile
|
||||
root.bindWallet = function(credentials, cb) {
|
||||
if (!credentials.walletId || !credentials.m)
|
||||
|
|
@ -224,7 +227,7 @@ angular.module('copayApp.services')
|
|||
bwsurl: getBWSURL(credentials.walletId),
|
||||
});
|
||||
|
||||
var skipKeyValidation = root.profile.isChecked(platformInfo.ua, credentials.walletId);
|
||||
var skipKeyValidation = shouldSkipValidation();
|
||||
if (!skipKeyValidation)
|
||||
root.runValidation(client, 500);
|
||||
|
||||
|
|
@ -494,7 +497,7 @@ angular.module('copayApp.services')
|
|||
return cb(gettextCatalog.getString('Wallet already in Copay'));
|
||||
|
||||
|
||||
var skipKeyValidation = root.profile.isChecked(platformInfo.ua, walletId);
|
||||
var skipKeyValidation = shouldSkipValidation();
|
||||
if (!skipKeyValidation)
|
||||
root.runValidation(client);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue