Wire up CreateRoom to UI.

This commit is contained in:
Erik Johnston 2015-07-16 13:49:34 +01:00
parent 5d9db52b32
commit c708976635
11 changed files with 241 additions and 13 deletions

View file

@ -77,11 +77,11 @@ module.exports = {
var self = this;
deferred.then(function () {
deferred.then(function (resp) {
self.setState({
phase: self.phases.CREATED,
});
self.props.onRoomCreated();
self.props.onRoomCreated(resp.room_id);
}, function(err) {
self.setState({
phase: self.phases.ERROR,