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

Overhaul connection management #782

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from
Draft

Overhaul connection management #782

wants to merge 2 commits into from

Conversation

TobiasFella
Copy link
Member

As described in #781

Roughly:

  • Turn Connection into a type that only exists in an initiated state (from the API user's perspective, at least)
  • To do this, pull connection setup, etc. out into a new PendingConnection type
  • Add easy-to-use account login and restoration functions to AccountRegistry
  • Make connections do the expected things (cache, sync loop, etc.) by default

Still an early draft. Rough list of missing things:

  • SSO login
  • Registration
  • Error handling during login
  • Implementation of mockConnection
  • Putting back some things that were hacked out
  • Make sure that tests still work
  • Homeserver class

As described in #781

Roughly:
- Turn Connection into a type that only exists in an initiated state (from the API user's perspective, at least)
- To do this, pull connection setup, etc. out into a new PendingConnection type
- Add easy-to-use account login and restoration functions to AccountRegistry
- Make connections do the expected things (cache, sync loop, etc.) by default
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.

1 participant