Dispatch events when calls are made/received.
This commit is contained in:
parent
f94a061fda
commit
78bea916e1
5 changed files with 59 additions and 10 deletions
|
@ -116,6 +116,12 @@ module.exports = {
|
|||
that.setState({ready: true, currentRoom: firstRoom});
|
||||
dis.dispatch({action: 'focus_composer'});
|
||||
});
|
||||
cli.on('Call.incoming', function(call) {
|
||||
dis.dispatch({
|
||||
action: 'incoming_call',
|
||||
call: call
|
||||
});
|
||||
});
|
||||
Notifier.start();
|
||||
cli.startClient();
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue