Dispatch events when calls are made/received.

This commit is contained in:
Kegan Dougal 2015-07-15 14:06:44 +01:00
parent f94a061fda
commit 78bea916e1
5 changed files with 59 additions and 10 deletions

View file

@ -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();
},