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: should reattach channel logic #1608

Merged
merged 2 commits into from
Feb 5, 2024
Merged

fix: should reattach channel logic #1608

merged 2 commits into from
Feb 5, 2024

Conversation

ttypic
Copy link
Collaborator

@ttypic ttypic commented Feb 2, 2024

Resolves #1609
Jira links SDK-4075

_shouldReattachToSetOptions used this.params and this.modes when checking channel options, but these fields are only set after the channel is attached. This created a bug when RealtimeChannels.get() is invoked during attaching state.

@github-actions github-actions bot temporarily deployed to staging/pull/1608/features February 2, 2024 21:05 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1608/bundle-report February 2, 2024 21:06 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1608/typedoc February 2, 2024 21:06 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1608/features February 3, 2024 00:28 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1608/bundle-report February 3, 2024 00:29 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1608/typedoc February 3, 2024 00:29 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1608/features February 5, 2024 11:05 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1608/bundle-report February 5, 2024 11:06 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1608/typedoc February 5, 2024 11:06 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1608/features February 5, 2024 11:16 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1608/bundle-report February 5, 2024 11:17 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1608/typedoc February 5, 2024 11:17 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1608/features February 5, 2024 11:22 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1608/typedoc February 5, 2024 11:23 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1608/bundle-report February 5, 2024 11:23 Inactive
@ttypic ttypic marked this pull request as ready for review February 5, 2024 11:26
src/common/lib/client/realtimechannel.ts Outdated Show resolved Hide resolved
src/common/lib/client/realtimechannel.ts Outdated Show resolved Hide resolved
`_shouldReattachToSetOptions` used `this.params` and `this.modes` when checking channel options, but these fields are only set after the channel is attached. This created a bug when `RealtimeChannels.get()` is invoked during `attaching` state.
Copy link
Member

@owenpearson owenpearson left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@ttypic ttypic merged commit 552f4a3 into main Feb 5, 2024
10 of 11 checks passed
@ttypic ttypic deleted the fix-should-reattach-logic branch February 5, 2024 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

RealtimeChannels.get() with options parameter throws an exception when executed during the attaching state.
2 participants