fix push notifications and remove onboarding email

This commit is contained in:
Gabriel Bazán 2016-10-08 20:19:55 -03:00
commit 3320510d35
9 changed files with 74 additions and 53 deletions

View file

@ -39,9 +39,9 @@ angular.module('copayApp.controllers').controller('preferencesNotificationsContr
};
configService.set(opts, function(err) {
if (opts.pushNotifications.enabled)
pushNotificationsService.enableNotifications(profileService.walletClients);
profileService.pushNotificationsInit();
else
pushNotificationsService.disableNotifications(profileService.walletClients);
pushNotificationsService.disableNotifications(profileService.getWallets());
if (err) $log.debug(err);
});
};