Skip to content

Do not throw exception when user subscribes to a channel twice #94

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

Merged
merged 3 commits into from
May 17, 2023

Conversation

fbenevides
Copy link
Contributor

@fbenevides fbenevides commented May 17, 2023

Description

Do not throw an exception when a user subscribes to a channel twice. It only happens on Android that throws an IllegalArgumentException. This PR handles the RN side by checking whether a subscribed channel is already on the subscription map.

CHANGELOG

@fbenevides fbenevides merged commit 3aac759 into master May 17, 2023
@fbenevides fbenevides deleted the fix-duplicated-subscribe branch May 17, 2023 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants