mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Auto-place a video call if the conf notification is clicked
This commit is contained in:
parent
2b65b4c2dc
commit
f89fbffe89
@ -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>
|
||||||
);
|
);
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user