feat: fetch avatars on ProfileSwitcherTab initialization

This commit is contained in:
tapframe 2026-04-10 20:20:57 +05:30
parent 1b7d7e5620
commit f9af2201e9

View file

@ -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