From f9af2201e90a9e0e4d2f31828a84d7a47549f797 Mon Sep 17 00:00:00 2001 From: tapframe <85391825+tapframe@users.noreply.github.com> Date: Fri, 10 Apr 2026 20:20:57 +0530 Subject: [PATCH] feat: fetch avatars on ProfileSwitcherTab initialization --- .../com/nuvio/app/features/profiles/ProfileSwitcherTab.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/composeApp/src/commonMain/kotlin/com/nuvio/app/features/profiles/ProfileSwitcherTab.kt b/composeApp/src/commonMain/kotlin/com/nuvio/app/features/profiles/ProfileSwitcherTab.kt index 9f1fe7588..0c21f16b9 100644 --- a/composeApp/src/commonMain/kotlin/com/nuvio/app/features/profiles/ProfileSwitcherTab.kt +++ b/composeApp/src/commonMain/kotlin/com/nuvio/app/features/profiles/ProfileSwitcherTab.kt @@ -81,6 +81,10 @@ fun ProfileSwitcherTab( val profiles = profileState.profiles val avatars by AvatarRepository.avatars.collectAsStateWithLifecycle() + LaunchedEffect(Unit) { + AvatarRepository.fetchAvatars() + } + val haptic = LocalHapticFeedback.current val scope = rememberCoroutineScope() val density = LocalDensity.current