diff --git a/src/components/views/voip/CallView.tsx b/src/components/views/voip/CallView.tsx index 58aefc8a01..f4ffa35aeb 100644 --- a/src/components/views/voip/CallView.tsx +++ b/src/components/views/voip/CallView.tsx @@ -538,19 +538,26 @@ 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 - const dialpadButton = this.state.callState === CallState.Connected ? :
; - - const contextMenuButton = this.state.callState === CallState.Connected ? :
; + let dialpadButton; + let contextMenuButton; + if (this.state.callState === CallState.Connected) { + contextMenuButton = ( + + ); + dialpadButton = ( + + ); + } return (
@@ -560,15 +567,15 @@ export default class CallView extends React.Component { onClick={this.onMicMuteClick} /> { vidMuteButton } +
+
+ { screensharingButton } + { sidebarButton } + { contextMenuButton } - { screensharingButton } - { sidebarButton } -
-
- { contextMenuButton }
); }