mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-08-16 12:24:40 +00:00
feat: fetch avatars on ProfileSwitcherTab initialization
This commit is contained in:
parent
1b7d7e5620
commit
f9af2201e9
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue