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

Make sure AccountSetupViewModel is only created once #106

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Rhys-T
Copy link

@Rhys-T Rhys-T commented Feb 5, 2024

Chatterbox currently creates two instances of AccountSetupViewModel when it is opened for the first time. Each one registers a separate account on the server, and Chatterbox ends up crashing as a result. This change makes Chatterbox reuse the AccountSetupViewModel if it already exists, similarly to what 8aa7ba4 added for the ChatterboxViewModel.

Fixes #105.

@Wallum
Copy link

Wallum commented Feb 26, 2024

I cannot be 100% certain as to whether this is an issue pertaining to this "fix":
There is an error occurring on my local implementation of this where it appears there are "timeouts" of the clients and messages are not sent through to the homeserver - this is sporadic and difficult to replicate. Could this "timeout" be related to the double registration issue "fixed" here?

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.

Chatterbox registers two accounts when first opened, then crashes
2 participants