Describe the bug
when overriding the userAgent prop for SessionManager
const userAgent = new UserAgent(userAgentOptions); const sessionManager = new SessionManager(server); sessionManager.userAgent = userAgent; sessionManager.delegate = { onCallCreated: () => {console.log('onCallCreated')}, } as SessionManagerDelegate;
the onCallCreated won't be invoked
To Reproduce (if possible)
const userAgent = new UserAgent(userAgentOptions); const sessionManager = new SessionManager(server); sessionManager.userAgent = userAgent; sessionManager.delegate = { onCallCreated: () => {console.log('onCallCreated')}, } as SessionManagerDelegate;
Expected behavior
that the onCallCreated function will be invoked
Observed behavior
onCallCreated won't be invoked no matter what
Environment Information
All
Additional context
If I'll have time I'll create a PR for fixing this