Auto-place a video call if the conf notification is clicked

This commit is contained in:
Kegan Dougal 2015-09-15 15:55:02 +01:00
parent 2b65b4c2dc
commit f89fbffe89
2 changed files with 9 additions and 1 deletions

View file

@ -179,7 +179,7 @@ module.exports = React.createClass({
var conferenceCallNotification = null; var conferenceCallNotification = null;
if (this.state.displayConfCallNotification) { if (this.state.displayConfCallNotification) {
conferenceCallNotification = ( conferenceCallNotification = (
<div className="mx_RoomView_ongoingConfCallNotification"> <div className="mx_RoomView_ongoingConfCallNotification" onClick={this.onConferenceNotificationClick}>
Ongoing conference call Ongoing conference call
</div> </div>
); );

View file

@ -206,6 +206,14 @@ module.exports = {
}); });
}, },
onConferenceNotificationClick: function() {
dis.dispatch({
action: 'place_call',
type: "video",
room_id: this.props.roomId
});
},
componentDidMount: function() { componentDidMount: function() {
if (this.refs.messageWrapper) { if (this.refs.messageWrapper) {
var messageWrapper = this.refs.messageWrapper.getDOMNode(); var messageWrapper = this.refs.messageWrapper.getDOMNode();