Skip to content

Commit

Permalink
Hide visio item
Browse files Browse the repository at this point in the history
  • Loading branch information
yostyle committed Jul 30, 2024
1 parent 142f130 commit 431af64
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -865,8 +865,7 @@ class TimelineViewModel @AssistedInject constructor(
R.id.open_matrix_apps -> false // TCHAP there are no matrix apps
R.id.voice_call -> state.isCallOptionAvailable() || state.hasActiveElementCallWidget()
// TCHAP check if visio is enabled
R.id.video_call -> vectorFeatures.tchapIsVisioSupported(session.sessionParams.homeServerUrl) &&
(state.isCallOptionAvailable() || state.jitsiState.confId == null || state.jitsiState.hasJoined)
R.id.video_call -> vectorFeatures.tchapIsVisioSupported(session.sessionParams.homeServerUrl) && state.isCallOptionAvailable()
// Show Join conference button only if there is an active conf id not joined. Otherwise fallback to default video disabled. ^
R.id.join_conference -> vectorFeatures.tchapIsVisioSupported(session.sessionParams.homeServerUrl) && !state.isCallOptionAvailable() &&
state.jitsiState.confId != null && !state.jitsiState.hasJoined
Expand Down

0 comments on commit 431af64

Please sign in to comment.