change wallet event 'create' to 'ready'
This commit is contained in:
parent
22cd4cae94
commit
132920f909
2 changed files with 4 additions and 2 deletions
|
|
@ -205,7 +205,7 @@ Wallet.prototype.netStart = function() {
|
||||||
|
|
||||||
net.start(startOpts, function() {
|
net.start(startOpts, function() {
|
||||||
self.connectToAll();
|
self.connectToAll();
|
||||||
self.emit('created', net.getPeer());
|
self.emit('ready', net.getPeer());
|
||||||
self.emit('refresh');
|
self.emit('refresh');
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -74,10 +74,11 @@ angular.module('copay.controllerUtils')
|
||||||
message: 'Received wrong message from peer id:' + peerId
|
message: 'Received wrong message from peer id:' + peerId
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
w.on('created', function(myPeerID) {
|
w.on('ready', function(myPeerID) {
|
||||||
video.setOwnPeer(myPeerID, w, handlePeerVideo);
|
video.setOwnPeer(myPeerID, w, handlePeerVideo);
|
||||||
$rootScope.wallet = w;
|
$rootScope.wallet = w;
|
||||||
$location.path('addresses');
|
$location.path('addresses');
|
||||||
|
$rootScope.$digest();
|
||||||
});
|
});
|
||||||
w.on('refresh', function() {
|
w.on('refresh', function() {
|
||||||
//alert('refresh');
|
//alert('refresh');
|
||||||
|
|
@ -93,6 +94,7 @@ angular.module('copay.controllerUtils')
|
||||||
});
|
});
|
||||||
w.on('openError', root.onErrorDigest);
|
w.on('openError', root.onErrorDigest);
|
||||||
w.on('peer', function(peerID) {
|
w.on('peer', function(peerID) {
|
||||||
|
//alert('peer');
|
||||||
video.callPeer(peerID, handlePeerVideo);
|
video.callPeer(peerID, handlePeerVideo);
|
||||||
$rootScope.$digest();
|
$rootScope.$digest();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue