@@ -177,10 +177,9 @@ export function getConferenceButtonVisibility(
177177 isCall : boolean ,
178178 isChat : boolean ,
179179 isBeingConsulted : boolean ,
180- multiPartyConferenceEnabled : boolean
180+ conferenceEnabled : boolean
181181) : Visibility {
182- const isVisible =
183- ( ( isBrowser && isCall && webRtcEnabled ) || isChat ) && ! isBeingConsulted && multiPartyConferenceEnabled ;
182+ const isVisible = ( ( isBrowser && isCall && webRtcEnabled ) || isChat ) && ! isBeingConsulted && conferenceEnabled ;
184183
185184 return { isVisible, isEnabled : true } ;
186185}
@@ -194,9 +193,9 @@ export function getExitConferenceButtonVisibility(
194193 consultCallHeld : boolean ,
195194 isHeld : boolean ,
196195 isConsultCompleted : boolean ,
197- multiPartyConferenceEnabled : boolean
196+ conferenceEnabled : boolean
198197) : Visibility {
199- const isVisible = isConferenceInProgress && ! isConsultInitiatedOrAccepted && multiPartyConferenceEnabled ;
198+ const isVisible = isConferenceInProgress && ! isConsultInitiatedOrAccepted && conferenceEnabled ;
200199 const isConferenceWithConsultNotHeld = isConferenceInProgress && isConsultInitiatedOrAccepted && ! consultCallHeld ;
201200 // Disable if: conference with consult not held OR (held AND in conference AND consult completed)
202201 const isEnabled = ! isConferenceWithConsultNotHeld && ! ( isHeld && isConferenceInProgress && isConsultCompleted ) ;
@@ -213,9 +212,9 @@ export function getMergeConferenceButtonVisibility(
213212 consultCallHeld : boolean ,
214213 isConferenceInProgress : boolean ,
215214 isCustomerInCall : boolean ,
216- multiPartyConferenceEnabled : boolean
215+ conferenceEnabled : boolean
217216) : Visibility {
218- const isVisible = isConsultInitiatedOrAccepted && isCustomerInCall && multiPartyConferenceEnabled ;
217+ const isVisible = isConsultInitiatedOrAccepted && isCustomerInCall && conferenceEnabled ;
219218 const isConferenceWithConsultNotHeld = isConferenceInProgress && isConsultInitiatedOrAccepted && ! consultCallHeld ;
220219 const isEnabled = isConsultAccepted && consultCallHeld && ! isConferenceWithConsultNotHeld ;
221220
@@ -288,9 +287,9 @@ export function getMergeConferenceConsultButtonVisibility(
288287 isConsultInitiated : boolean ,
289288 consultCallHeld : boolean ,
290289 isCustomerInCall : boolean ,
291- multiPartyConferenceEnabled : boolean
290+ conferenceEnabled : boolean
292291) : Visibility {
293- const isVisible = ( isConsultAccepted || isConsultInitiated ) && multiPartyConferenceEnabled ;
292+ const isVisible = ( isConsultAccepted || isConsultInitiated ) && conferenceEnabled ;
294293 const isEnabled = ! consultCallHeld && isConsultAccepted && isCustomerInCall ;
295294
296295 return { isVisible, isEnabled} ;
@@ -374,7 +373,7 @@ export function getWrapupButtonVisibility(task: ITask): Visibility {
374373 * @param featureFlags Feature flags configuration object
375374 * @param task The task object
376375 * @param agentId The agent ID
377- * @param multiPartyConferenceEnabled Whether multiparty conference is enabled
376+ * @param conferenceEnabled Whether conference is enabled
378377 * @param logger Optional logger instance
379378 * @returns An object containing the visibility and state of various controls
380379 */
@@ -383,7 +382,7 @@ export function getControlsVisibility(
383382 featureFlags : { [ key : string ] : boolean } ,
384383 task : ITask ,
385384 agentId : string ,
386- multiPartyConferenceEnabled : boolean ,
385+ conferenceEnabled : boolean ,
387386 logger ?: ILogger
388387) {
389388 try {
@@ -406,7 +405,7 @@ export function getControlsVisibility(
406405
407406 // Calculate task state flags
408407 const isTransferVisibility = isBrowser ? webRtcEnabled : true ;
409- const isConferenceInProgress = ( task ?. data ?. isConferenceInProgress && multiPartyConferenceEnabled ) ?? false ;
408+ const isConferenceInProgress = ( task ?. data ?. isConferenceInProgress && conferenceEnabled ) ?? false ;
410409 const isConsultInProgress = getIsConsultInProgress ( task ) ;
411410 const isHeld = findHoldStatus ( task , 'mainCall' , agentId ) ;
412411 const isCustomerInCall = getIsCustomerInCall ( task ) ;
@@ -472,23 +471,23 @@ export function getControlsVisibility(
472471 isCall ,
473472 isChat ,
474473 isBeingConsulted ,
475- multiPartyConferenceEnabled
474+ conferenceEnabled
476475 ) ,
477476 exitConference : getExitConferenceButtonVisibility (
478477 isConferenceInProgress ,
479478 isConsultInitiatedOrAccepted ,
480479 consultCallHeld ,
481480 isHeld ,
482481 isConsultCompleted ,
483- multiPartyConferenceEnabled
482+ conferenceEnabled
484483 ) ,
485484 mergeConference : getMergeConferenceButtonVisibility (
486485 isConsultInitiatedOrAcceptedOnly ,
487486 isConsultAccepted ,
488487 consultCallHeld ,
489488 isConferenceInProgress ,
490489 isCustomerInCall ,
491- multiPartyConferenceEnabled
490+ conferenceEnabled
492491 ) ,
493492
494493 // Consult controls
@@ -528,7 +527,7 @@ export function getControlsVisibility(
528527 isConsultInitiated ,
529528 consultCallHeld ,
530529 isCustomerInCall ,
531- multiPartyConferenceEnabled
530+ conferenceEnabled
532531 ) ,
533532 muteUnmuteConsult : getMuteUnmuteConsultButtonVisibility (
534533 isBrowser ,
0 commit comments