Skip to content

Commit

Permalink
fix: only show call popup to the agent who received the call
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik committed Jan 20, 2025
1 parent 0315220 commit 71bb1bb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/src/components/Telephony/ExotelCallUI.vue
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,14 @@ import TaskPanel from '@/components/Telephony/TaskPanel.vue'
import CountUpTimer from '@/components/CountUpTimer.vue'
import { createToast } from '@/utils'
import { globalStore } from '@/stores/global'
import { sessionStore } from '@/stores/session'
import { useDraggable, useWindowSize } from '@vueuse/core'
import { TextEditor, Avatar, Button, createResource } from 'frappe-ui'
import { ref, onBeforeUnmount, watch, nextTick } from 'vue'
import { useRouter } from 'vue-router'
const { $socket } = globalStore()
const { user } = sessionStore()
const callPopupHeader = ref(null)
const showCallPopup = ref(false)
Expand Down Expand Up @@ -425,7 +427,11 @@ function setup() {
callStatus.value = updateStatus(data)
if (!showCallPopup.value && !showSmallCallPopup.value) {
if (
!showCallPopup.value &&
!showSmallCallPopup.value &&
data.AgentEmail == user.value
) {
showCallPopup.value = true
}
})
Expand Down

0 comments on commit 71bb1bb

Please sign in to comment.