mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-28 01:41:36 +02:00
Show dialpad only when PSTN supported
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
50c27ebed7
commit
a8d27746b4
@ -537,8 +537,6 @@ export default class CallView extends React.Component<IProps, IState> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// The dial pad & 'more' button actions are only relevant in a connected call
|
// The dial pad & 'more' button actions are only relevant in a connected call
|
||||||
// When not connected, we have to put something there to make the flexbox alignment correct
|
|
||||||
let dialpadButton;
|
|
||||||
let contextMenuButton;
|
let contextMenuButton;
|
||||||
if (this.state.callState === CallState.Connected) {
|
if (this.state.callState === CallState.Connected) {
|
||||||
contextMenuButton = (
|
contextMenuButton = (
|
||||||
@ -549,6 +547,9 @@ export default class CallView extends React.Component<IProps, IState> {
|
|||||||
isExpanded={this.state.showMoreMenu}
|
isExpanded={this.state.showMoreMenu}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
let dialpadButton;
|
||||||
|
if (this.state.callState === CallState.Connected && CallHandler.sharedInstance().getSupportsPstnProtocol()) {
|
||||||
dialpadButton = (
|
dialpadButton = (
|
||||||
<ContextMenuButton
|
<ContextMenuButton
|
||||||
className="mx_CallView_callControls_button mx_CallView_callControls_dialpad"
|
className="mx_CallView_callControls_button mx_CallView_callControls_dialpad"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user