Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix host creating multiple streams #116

Merged
merged 6 commits into from
May 6, 2022

Conversation

timmydoza
Copy link
Contributor

@timmydoza timmydoza commented May 3, 2022

Contributing to Twilio

All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.

  • I acknowledge that all my contributions will be made under the project's license.

Pull Request Details

JIRA link(s):

Description

This PR fixed a bug where the host cannot create more than one stream. It adds disconnect functions for both the SyncProvider and Chat Provider, and calls these functions whenever a participant disconnects from an event. This cleans up the chat and sync states, and there are now no errors when a host tries to create a second stream, because the stale sync and chat instances are no longer present.

Burndown

Before review

  • Added unit tests if necessary
  • Updated affected documentation
  • Verified locally with all effected platforms
  • Manually sanity tested running locally
  • Included screenshot as PR comment (if needed)
  • Ready for review

Before merge

  • Got one or more +1s
  • Re-tested if necessary

@timmydoza timmydoza requested a review from olipyskoty May 3, 2022 16:23
Copy link
Contributor

@olipyskoty olipyskoty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one small change

onError(new Error("There was a problem connecting to Twilio's conversation service."));
});
},
[onError]
[onError, chatClient]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like chatClient isn't needed in the dependency array

@timmydoza timmydoza requested a review from olipyskoty May 3, 2022 17:50
@timmydoza timmydoza merged commit bc173e9 into main May 6, 2022
@timmydoza timmydoza deleted the fix-host-creating-multiple-streams branch May 6, 2022 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants