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

Resolves the Sendbird Session Expiry issue #421

Merged
merged 8 commits into from
Mar 22, 2023
Merged

Resolves the Sendbird Session Expiry issue #421

merged 8 commits into from
Mar 22, 2023

Conversation

AdamDotCom
Copy link
Contributor

What does this do?

Resolves the Sendbird Session Expiry issue. This is a multi step phase, we also need to update the Sendbird library.

Why are we making this change?

  1. Sendbird Sessions were expiring without being renewed
  2. Our Sendbird client was getting instantiated many times within our app
  3. We never explicitly disconnected users which left connections open even after a user had disconnected

How do I test this?

Run the tests, Connect as a user, open the browser console, wait 15minutes, observe that there are no Sendbird errors in the console, have someone send you a message, verify the realtime updates occur.

}

export class Container extends React.Component<Properties> {
static mapState(state: RootState): Partial<Properties> {
static mapState(state: RootState, props: Properties): Partial<Properties> {
if (!props.context.isAuthenticated) return {};
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this mean we won't get live updates for public channels?

@AdamDotCom AdamDotCom merged commit 05a0f6a into main Mar 22, 2023
@AdamDotCom AdamDotCom deleted the ZOS-217 branch March 22, 2023 03:04
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.

3 participants