From a8d27746b4de5a938fc44f94e19d0f8f81afefdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Sun, 25 Jul 2021 17:07:18 +0200 Subject: [PATCH] Show dialpad only when PSTN supported MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/components/views/voip/CallView.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/views/voip/CallView.tsx b/src/components/views/voip/CallView.tsx index a98c42526e..966d8e4a09 100644 --- a/src/components/views/voip/CallView.tsx +++ b/src/components/views/voip/CallView.tsx @@ -537,8 +537,6 @@ export default class CallView extends React.Component { } // 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; if (this.state.callState === CallState.Connected) { contextMenuButton = ( @@ -549,6 +547,9 @@ export default class CallView extends React.Component { isExpanded={this.state.showMoreMenu} /> ); + } + let dialpadButton; + if (this.state.callState === CallState.Connected && CallHandler.sharedInstance().getSupportsPstnProtocol()) { dialpadButton = (