talk-android/app/src/main/java/com/nextcloud/talk/polls
Marcel Hibbe 5219eeb11f
replace userManager.currentUser usage by currentUserProvider usage
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 <dev@mhibbe.de>
2025-02-07 13:13:38 +01:00
..
adapters fix to load fallback poll avatar for other actorTypes (deleted users...) 2024-04-05 15:48:13 +02:00
model use EnumActorTypeConverter for poll models 2024-04-05 13:25:32 +02:00
repositories use EnumActorTypeConverter for poll models 2024-04-05 13:25:32 +02:00
ui fix: remove use of LayoutInflater.from(Context) 2024-06-19 17:15:21 +02:00
viewmodels replace userManager.currentUser usage by currentUserProvider usage 2025-02-07 13:13:38 +01:00