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:
David Baker 2015-10-05 16:29:07 +01:00
parent 490e56bfbb
commit 85636ccdad

View File

@ -53,17 +53,12 @@ module.exports = React.createClass({
var topic = this.props.room.currentState.getStateEvents('m.room.topic', '');
var callButtons;
if (this.state) {
switch (this.state.call_state) {
case "ringback":
case "connected":
callButtons = (
<div className="mx_RoomHeader_textButton" onClick={this.onHangupClick}>
End call
</div>
);
break;
}
if (this.state && this.state.call_state != 'ended') {
callButtons = (
<div className="mx_RoomHeader_textButton" onClick={this.onHangupClick}>
End call
</div>
);
}
var name = null;