Correctly hide the dialpad

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-07-27 17:52:13 +02:00
parent 8294d324e3
commit 6f77d3bbab
No known key found for this signature in database
GPG Key ID: 55C211A1226CB17D
1 changed files with 1 additions and 1 deletions

View File

@ -534,7 +534,7 @@ export default class CallView extends React.Component<IProps, IState> {
);
}
let dialpadButton;
if (this.state.callState === CallState.Connected && CallHandler.sharedInstance().getSupportsPstnProtocol()) {
if (this.state.callState === CallState.Connected && this.props.call.opponentSupportsDTMF()) {
dialpadButton = (
<ContextMenuButton
className="mx_CallView_callControls_button mx_CallView_callControls_dialpad"