Fix and refactor emailService for notifications by email
This commit is contained in:
parent
82879cca20
commit
3700845449
5 changed files with 72 additions and 64 deletions
|
|
@ -763,11 +763,13 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
|
|||
};
|
||||
|
||||
// Update this JIC.
|
||||
var config = configService.getSync().wallet.settings;
|
||||
var config = configService.getSync();
|
||||
var walletSettings = config.wallet.settings;
|
||||
|
||||
//prefs.email (may come from arguments)
|
||||
prefs.email = config.emailNotifications.email;
|
||||
prefs.language = uxLanguage.getCurrentLanguage();
|
||||
prefs.unit = config.unitCode;
|
||||
prefs.unit = walletSettings.unitCode;
|
||||
|
||||
updateRemotePreferencesFor(lodash.clone(clients), prefs, function(err) {
|
||||
if (err) return cb(err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue