Commit 66a3a96
committed
fix(voip): stash callId on accept-failed so lifecycle.end can resolve it
Blocker 2: handleAcceptFailedEvent only forwarded the deep-link payload
without setting nativeAcceptedCallId. The downstream
deepLinking saga (handleVoipAcceptFailed) calls
callLifecycle.end('error'), which resolves the native callId via
`callId ?? nativeAcceptedCallId`. With neither set, end() has no
callUuid and the CallKit/Telecom session is never torn down.
Mirror the success path: call setNativeAcceptedCallId(payload.callId)
before opening the failure deep link so the saga's lifecycle.end()
can issue voipNative.call.end with the right id.
Adds a unit test asserting the failed-accept path stashes the callId.1 parent 155bcb7 commit 66a3a96
2 files changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
264 | 278 | | |
265 | 279 | | |
266 | 280 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
71 | 76 | | |
72 | 77 | | |
73 | 78 | | |
| |||
0 commit comments