mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Show end call button in states other than connected and ringback: it's perfectly valid to want to end the call at other times.
Fixes #9
This commit is contained in:
parent
490e56bfbb
commit
85636ccdad
@ -53,17 +53,12 @@ module.exports = React.createClass({
|
|||||||
var topic = this.props.room.currentState.getStateEvents('m.room.topic', '');
|
var topic = this.props.room.currentState.getStateEvents('m.room.topic', '');
|
||||||
|
|
||||||
var callButtons;
|
var callButtons;
|
||||||
if (this.state) {
|
if (this.state && this.state.call_state != 'ended') {
|
||||||
switch (this.state.call_state) {
|
callButtons = (
|
||||||
case "ringback":
|
<div className="mx_RoomHeader_textButton" onClick={this.onHangupClick}>
|
||||||
case "connected":
|
End call
|
||||||
callButtons = (
|
</div>
|
||||||
<div className="mx_RoomHeader_textButton" onClick={this.onHangupClick}>
|
);
|
||||||
End call
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var name = null;
|
var name = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user