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: correct registered state when disconnecting and implement disconnect option #22

Merged
merged 7 commits into from
Oct 7, 2022

Conversation

Oliver-Zimmerman
Copy link
Contributor


This PR fixes and implements the disconnect feature.

Before this PR, disconnecting was not setting the registered state back to false meaning that logging in again would often not work unless the application was completely closed beforehand (gateway messages were ignored when registered = true).

Also, the sample application didn't have an example use case for the disconnect feature, so the UI has been updated too to allow for this functionality with an overflow menu (3 dots)

👴 👶 Behaviors

Before changes

Disconnect not working correctly
No disconnect implemented in sample UI

After changes

Register state set to false on disconnect
Ability to disconnect in sample app.

✋ Manual testing

  1. Login
  2. Create call
  3. Disconnect
  4. Repeat infinite amount of times

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.

None yet

2 participants