(refactor) refactor ProfileManager class

This commit is contained in:
MM20
2026-07-19 18:27:37 +02:00
parent 10516ef9a9
commit 3f4deead1b
7 changed files with 77 additions and 97 deletions

View File

@@ -26,7 +26,7 @@ class ProfileBadgeProvider : BadgeProvider, KoinComponent {
}
if (userHandle != null) {
emitAll(
profileManager.getProfile(userHandle).map {
profileManager.getProfileByUserHandle(userHandle).map {
when (it?.type) {
Profile.Type.Work -> WorkProfile
Profile.Type.Private -> PrivateProfile