You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When setting the SessionManager.userAgent it overrides the Callbacks and no callback are received for calls event #1104
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
Activity