diff --git a/src/room/InCallView.tsx b/src/room/InCallView.tsx index 49e7abfc..87db59bf 100644 --- a/src/room/InCallView.tsx +++ b/src/room/InCallView.tsx @@ -570,8 +570,6 @@ export const InCallView: FC = ({ matrixRoom.roomId, ); - const settingsButtonInAppBar = - headerStyle === HeaderStyle.AppBar && showHeader; useAppBarSecondaryButton( = ({ audioOutputSwitcher={audioOutputSwitcher ?? undefined} // Only pass the openSettings function if the settings button is not in the app bar. // If there is no fn the button will be hidden in the footer. - openSettings={settingsButtonInAppBar ? undefined : openSettings} + openSettings={ + headerStyle === HeaderStyle.AppBar ? undefined : openSettings + } hangup={vm.hangup} //Debug props debugTileLayout={debugTileLayout}