Skip to content

Commit

Permalink
Hide dialpad button
Browse files Browse the repository at this point in the history
  • Loading branch information
yostyle committed Dec 27, 2023
1 parent 8b5ff75 commit 9313cfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ class CallControlsBottomSheet : VectorBaseBottomSheetDialogFragment<BottomSheetC
views.callControlsToggleHoldResume.subTitle = null
views.callControlsToggleHoldResume.leftIcon = ContextCompat.getDrawable(requireContext(), R.drawable.ic_call_hold_action)
}
views.callControlsOpenDialPad.isVisible = state.canOpenDialPad // Tchap: DialPad is not available
views.callControlsTransfer.isVisible = state.canOpponentBeTransferred
views.callControlsShareScreen.title = getString(if (state.isSharingScreen) R.string.call_stop_screen_sharing else R.string.call_start_screen_sharing)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ data class VectorCallViewState(
val otherKnownCallInfo: CallInfo? = null,
val callInfo: CallInfo? = null,
val formattedDuration: String = "",
val canOpenDialPad: Boolean = false, // Tchap: DialPad is not available
val canOpponentBeTransferred: Boolean = false,
val transferee: TransfereeState = TransfereeState.NoTransferee,
val isSharingScreen: Boolean = false
Expand Down

0 comments on commit 9313cfb

Please sign in to comment.