add notification

This commit is contained in:
Matias Alejo Garcia 2015-04-01 13:31:22 -03:00
parent 039396dfaa
commit e59ff66a64
1 changed files with 6 additions and 0 deletions

View File

@ -217,6 +217,12 @@ WalletService.prototype.replaceTemporaryRequestKey = function(opts, cb) {
self.storage.storeWalletAndUpdateCopayersLookup(wallet, function(err) {
if (err) return cb(err);
self._notify('CopayerUpdated', {
walletId: opts.walletId,
copayerId: copayer.id,
copayerName: copayer.name,
});
return cb(null, {
copayerId: self.copayerId,
wallet: wallet