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

[stable-21.0] replace userManager.currentUser usage by currentUserProvider usage #4699

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Feb 7, 2025

Backport of PR #4695

userManager.currentUser was called too often. I was not able to prove that a bug is related to it but i think it may fix some hidden bugs.

CurrentUserProviderImpl is now used throughout the code to access the current user.
userManager.currentUser is only used from CurrentUserProviderImpl whenever the _currentUser was null (should only happen on app startup)

To avoid multiple initialization of CurrentUserProviderImpl it was changed to be a @singleton

The handling should soon be replaced with coroutine flows. However for the v21.0.0 release it's still done with RxJava to avoid bugs.

Signed-off-by: Marcel Hibbe <[email protected]>
@backportbot backportbot bot requested review from sowjanyakch and mahibi February 7, 2025 12:26
@backportbot backportbot bot added the 3. to review Waiting for reviews label Feb 7, 2025
@backportbot backportbot bot added this to the 21.0.0 milestone Feb 7, 2025
@mahibi mahibi enabled auto-merge February 7, 2025 12:26
Copy link
Contributor

github-actions bot commented Feb 7, 2025

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/4699-talk.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud Talk app.

@mahibi mahibi disabled auto-merge February 7, 2025 12:40
Copy link
Contributor

github-actions bot commented Feb 7, 2025

Codacy

Lint

TypemasterPR
Warnings104104
Errors3636

SpotBugs

CategoryBaseNew
Bad practice66
Correctness222222
Dodgy code7171
Internationalization33
Malicious code vulnerability33
Performance44
Security11
Total310310

@mahibi mahibi merged commit 6a377f4 into stable-21.0 Feb 7, 2025
15 checks passed
@mahibi mahibi deleted the backport/4695/stable-21.0 branch February 7, 2025 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant