diff --git a/app/javascript/dashboard/components-next/Contacts/VoiceCallButton.vue b/app/javascript/dashboard/components-next/Contacts/VoiceCallButton.vue index 2ffbac7ff..5d13b1ee1 100644 --- a/app/javascript/dashboard/components-next/Contacts/VoiceCallButton.vue +++ b/app/javascript/dashboard/components-next/Contacts/VoiceCallButton.vue @@ -93,6 +93,8 @@ const startWhatsappCall = async inboxId => { } const callsStore = useCallsStore(); + // Stay non-active until the connect cable event arrives — flipping to active + // here would start the duration timer before the contact picks up. callsStore.addCall({ callSid: response.call_id, callId: response.id, @@ -101,7 +103,6 @@ const startWhatsappCall = async inboxId => { callDirection: 'outbound', provider: 'whatsapp', }); - callsStore.setCallActive(response.call_id); useAlert(t('CONTACT_PANEL.CALL_INITIATED')); navigateToConversation(conversationId); diff --git a/app/javascript/dashboard/components/widgets/FloatingCallWidget.vue b/app/javascript/dashboard/components/widgets/FloatingCallWidget.vue index fe22eb1eb..d711c7fb4 100644 --- a/app/javascript/dashboard/components/widgets/FloatingCallWidget.vue +++ b/app/javascript/dashboard/components/widgets/FloatingCallWidget.vue @@ -1,5 +1,5 @@