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 crash trying to remove a UserSession for a nil MXSession. #5880

Merged
merged 1 commit into from
Mar 21, 2022

Conversation

pixlwave
Copy link
Member

@pixlwave pixlwave commented Mar 21, 2022

The app was crashing whenever it was in a soft logout state due to a nil MXSession being used to try and remove UserSession (after a valid call to remove the session had already been made). There is more work to be done as there is also a crash when tapping the "Clear all data" button (#5881), but that looks more involved and I wanted to get this submitted before the next RC so that it at least allows users to log back in without having a crash loop.

Fixes #5846

@pixlwave pixlwave requested review from a team and stefanceriu and removed request for a team March 21, 2022 14:56
@github-actions
Copy link

📱 Scan the QR code below to install the build for this PR.
🔒 This build is for internal testing purpose. Only devices listed in the ad-hoc provisioning profile can install Element Alpha.

QR code

If you can't scan the QR code you can install the build via this link: https://i.diawi.com/jTVLa3

Copy link
Member

@stefanceriu stefanceriu left a comment

Choose a reason for hiding this comment

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

👍

@pixlwave pixlwave merged commit a827a37 into develop Mar 21, 2022
@pixlwave pixlwave deleted the doug/5846_soft_logout_crash branch March 21, 2022 17:50
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.

Potential crash loop on soft logout
2 participants