fix(cc-task): guard onRecordingToggle callback and fix event cleanup mismatch by bhabalan · Pull Request #667 · webex/widgets

@bhabalan

… name mismatch in cleanup

Recording pause/resume callbacks called onRecordingToggle without a null check,
throwing TypeError when the optional prop wasn't provided. This crashed the SDK
event emitter, preventing subsequent hold/resume events from firing.

Additionally, cleanup used CONTACT_RECORDING_PAUSED/RESUMED (different string
values) instead of TASK_RECORDING_PAUSED/RESUMED, so old callbacks were never
removed on re-renders.

@bhabalan marked this pull request as ready for review

April 6, 2026 06:15