fix fingerprint setting, remove activity from home
This commit is contained in:
parent
21c5cd3fd7
commit
333b4f45a0
9 changed files with 44 additions and 34 deletions
|
|
@ -827,6 +827,7 @@ angular.module('copayApp.services')
|
|||
prev;
|
||||
|
||||
|
||||
// REMOVE (if we want 1-to-1 notification) ????
|
||||
lodash.each(shown, function(x) {
|
||||
if (prev && prev.walletId === x.walletId && prev.txpId && prev.txpId === x.txpId && prev.creatorId && prev.creatorId === x.creatorId) {
|
||||
prev.types.push(x.type);
|
||||
|
|
|
|||
|
|
@ -995,10 +995,17 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
|
|||
};
|
||||
|
||||
root.setTouchId = function(wallet, enabled, cb) {
|
||||
|
||||
var opts = {
|
||||
touchIdFor: {}
|
||||
};
|
||||
opts.touchIdFor[wallet.id] = enabled;
|
||||
|
||||
fingerprintService.check(wallet, function(err) {
|
||||
if (err) return cb(err); {
|
||||
$log.debug(err);
|
||||
return;
|
||||
if (err) {
|
||||
opts.touchIdFor[wallet.id] = !enabled;
|
||||
$log.debug('Error with fingerprint:' + err);
|
||||
return cb(err);
|
||||
}
|
||||
configService.set(opts, cb);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue