Skip to content

When setting the SessionManager.userAgent it overrides the Callbacks and no callback are received for calls event #1104

Open

Description

@tamirn2

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions