From accccc95b858a84022a022a6751819f7edb9d1c6 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Fri, 16 Aug 2024 19:09:44 +0530 Subject: [PATCH] fix: capture on making a call --- frontend/src/components/CallUI.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/components/CallUI.vue b/frontend/src/components/CallUI.vue index 693257de..da5c1945 100644 --- a/frontend/src/components/CallUI.vue +++ b/frontend/src/components/CallUI.vue @@ -197,6 +197,7 @@ import { Device } from '@twilio/voice-sdk' import { useDraggable, useWindowSize } from '@vueuse/core' import { globalStore } from '@/stores/global' import { contactsStore } from '@/stores/contacts' +import { capture } from '@/telemetry' import { Avatar, call } from 'frappe-ui' import { onMounted, ref, watch } from 'vue' @@ -403,6 +404,8 @@ async function makeOutgoingCall(number) { showCallPopup.value = true callStatus.value = 'initiating' + capture('make_outgoing_call') + _call.on('messageReceived', (message) => { let info = message.content callStatus.value = info.CallStatus