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

Use an existing account for the me-Screen (IOS-255) #1310

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

zeitschlag
Copy link
Contributor

@zeitschlag zeitschlag commented Jun 9, 2024

Technically this is a workaround: Replacing the ProfileViewModel! with a real optional (or no optional at all) most probably requires a rewrite of the entire Profile-screen, including header etc. as the ProfileViewModel! is used basically everywhere.

So the workaround is to use the existing account (at least until it is updated and replaced) to not have the app crash when the user taps on their profile too quickly (without an account, which this PR fixes). For some reason, we persist the users very own profile, but never used it.

Technically this is a workaround: Replacing the ProfileViewModel! with a real optional affects the entire Profile-screen including the header etc. as this ProfileViewModel is used everywhere
@zeitschlag zeitschlag linked an issue Jun 10, 2024 that may be closed by this pull request
@zeitschlag zeitschlag marked this pull request as ready for review June 10, 2024 08:33
@zeitschlag zeitschlag requested a review from kimar June 10, 2024 08:33
@zeitschlag zeitschlag merged commit 025b434 into develop Jun 10, 2024
2 checks passed
@zeitschlag zeitschlag deleted the ios-255-profile-crash branch June 10, 2024 09:01
@zeitschlag zeitschlag added this to the 2024.6 milestone Jun 10, 2024
@zeitschlag zeitschlag self-assigned this Jun 10, 2024
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.

Crash when tapping the Profile-button too quickly
2 participants