Skip to content

Commit

Permalink
call event. added phone island answered event
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyco97 committed Mar 28, 2024
1 parent ff8f0e9 commit 749c187
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/models/currentCall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { createModel } from '@rematch/core'
import type { RootModel } from '.'
import incomingRingtone from '../static/incoming_ringtone'
import { dispatchOutgoingCallStarted } from '../events/index'
import { eventDispatch } from '../utils'

const defaultState = {
displayName: '',
Expand Down Expand Up @@ -119,7 +120,7 @@ export const currentCall = createModel<RootModel>()({
(rootState.currentUser.default_device?.type === 'physical' && payload.acceptedSocket)
) {
payload.accepted = true
// TODO - dispatch accepted event
eventDispatch('phone-island-call-answered', {})
}
// Update the current call values
dispatch.currentCall.updateCurrentCall({
Expand Down

0 comments on commit 749c187

Please sign in to comment.