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;
if (this.state.displayConfCallNotification) {
conferenceCallNotification = (
<div className="mx_RoomView_ongoingConfCallNotification">
<div className="mx_RoomView_ongoingConfCallNotification" onClick={this.onConferenceNotificationClick}>
Ongoing conference call
</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() {
if (this.refs.messageWrapper) {
var messageWrapper = this.refs.messageWrapper.getDOMNode();