-
Notifications
You must be signed in to change notification settings - Fork 27
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
add logout feature #293
base: main
Are you sure you want to change the base?
add logout feature #293
Conversation
Hi, @kevinaboos , I’ve implemented user account logout in my current commit, but I’ve run into a problem. After logging out, the
However, if I restart the program using
I haven’t tested solutions 2 and 3 yet, so I’m not sure if they’ll work. What do you think about these ideas? |
Sorry I completely missed this, Alex just told me about it. I hadn't reviewed it because it was still marked as a draft. For this, we'll have to rework almost all of the code in sliding_sync to support re-creating a new Client object, as currently we assume that once a client is created, it lasts for the entire runtime of the app. It would certainly be easiest to log the user out and then just restart the app, which is what most clients generally do. Once we have that functionality, then we can gradually improve the async code in sliding_sync in order to adjust its assumptions about a Client object always existing and being the same. Unfortunately I won't have any time to address this until mid-February with some upcoming conference travel, but I'm definitely interested in supporting it as part of Milestone 2. |
Hello, @kevinaboos Yeah, I tried to draw a diagram to describe the main architecture of Robrix (there might be some mistakes). The main issue right now is that the code in For some async tasks that run in loops, there's no way to replace the In the current PR changes, I've already implemented the feature where the user can log out and then log back in by restarting the app. But I feel like this might not provide the best user experience. Going forward, I think we could try redesigning the code in Let me know if you need any help—I'd be happy to assist! |
Signed-off-by: Alvin <[email protected]>
Fixes #277