let users join confs as voice or video

pull/21833/head
Matthew Hodgson 2016-09-03 13:27:46 +01:00
parent dbd17ea953
commit fdfd6ecfd9
1 changed files with 5 additions and 2 deletions

View File

@ -57,12 +57,14 @@ module.exports = React.createClass({
}
},
onConferenceNotificationClick: function(type) {
onConferenceNotificationClick: function(ev, type) {
dis.dispatch({
action: 'place_call',
type: type,
room_id: this.props.room.roomId,
});
ev.stopPropagation();
ev.preventDefault();
},
render: function() {
@ -91,7 +93,8 @@ module.exports = React.createClass({
}
else {
joinText = (<span>
Join as <a onClick={this.onConferenceNotificationClick.bind(this, 'voice')} href="#">voice</a> or <a onClick={this.onConferenceNotificationClick.bind(this, 'video')} href="#">video</a>.
Join as <a onClick={(event)=>{ this.onConferenceNotificationClick(event, 'voice')}} href="#">voice</a>&nbsp;
or <a onClick={(event)=>{ this.onConferenceNotificationClick(event, 'video') }} href="#">video</a>.
</span>);
}