mirror of https://github.com/BTCPrivate/copay.git
change wallet event 'create' to 'ready'
This commit is contained in:
parent
22cd4cae94
commit
132920f909
|
@ -205,7 +205,7 @@ Wallet.prototype.netStart = function() {
|
|||
|
||||
net.start(startOpts, function() {
|
||||
self.connectToAll();
|
||||
self.emit('created', net.getPeer());
|
||||
self.emit('ready', net.getPeer());
|
||||
self.emit('refresh');
|
||||
});
|
||||
};
|
||||
|
|
|
@ -74,10 +74,11 @@ angular.module('copay.controllerUtils')
|
|||
message: 'Received wrong message from peer id:' + peerId
|
||||
};
|
||||
});
|
||||
w.on('created', function(myPeerID) {
|
||||
w.on('ready', function(myPeerID) {
|
||||
video.setOwnPeer(myPeerID, w, handlePeerVideo);
|
||||
$rootScope.wallet = w;
|
||||
$location.path('addresses');
|
||||
$rootScope.$digest();
|
||||
});
|
||||
w.on('refresh', function() {
|
||||
//alert('refresh');
|
||||
|
@ -93,6 +94,7 @@ angular.module('copay.controllerUtils')
|
|||
});
|
||||
w.on('openError', root.onErrorDigest);
|
||||
w.on('peer', function(peerID) {
|
||||
//alert('peer');
|
||||
video.callPeer(peerID, handlePeerVideo);
|
||||
$rootScope.$digest();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue