diff --git a/packages/ringcentral-widgets/lib/hasActiveCalls.js b/packages/ringcentral-widgets/lib/hasActiveCalls.js index 3ce7d94f89..cdc5286433 100644 --- a/packages/ringcentral-widgets/lib/hasActiveCalls.js +++ b/packages/ringcentral-widgets/lib/hasActiveCalls.js @@ -6,14 +6,16 @@ export default function hasActiveCalls(phone) { webphone, callLogSection, callMonitorUI, + callingSettings, } = phone; + if (webphone && callingSettings.callingMode === callingModes.webphone) { + // need to show the ringout calls + return !!(webphone.sessions.length) || (callMonitor && callMonitor.calls.length); + } return !!( - // (callMonitor && callMonitor.calls.length) && - (webphone && webphone.sessions.length) - ) || !!( (callMonitor && callMonitor.calls.length) - || (callLogSection && callLogSection.showNotification) - // || (callLogSection && callLogSection.show) - || (callMonitorUI && callMonitorUI.cachedActive) + || (callLogSection && callLogSection.showNotification) + // || (callLogSection && callLogSection.show) + || (callMonitorUI && callMonitorUI.cachedActive) ); }