No need to remember this param.

This commit is contained in:
Vitor Pamplona
2024-02-13 11:39:54 -05:00
parent f75104e616
commit 9d8f70e04b
@@ -542,11 +542,6 @@ fun WatchUserMetadataAndFollowsAndRenderUserProfilePicture(
author: User, author: User,
accountViewModel: AccountViewModel, accountViewModel: AccountViewModel,
) { ) {
val automaticallyShowProfilePicture =
remember {
accountViewModel.settings.showProfilePictures.value
}
WatchUserMetadata(author) { baseUserPicture -> WatchUserMetadata(author) { baseUserPicture ->
// Crossfade(targetState = baseUserPicture) { userPicture -> // Crossfade(targetState = baseUserPicture) { userPicture ->
RobohashFallbackAsyncImage( RobohashFallbackAsyncImage(
@@ -555,7 +550,7 @@ fun WatchUserMetadataAndFollowsAndRenderUserProfilePicture(
contentDescription = stringResource(id = R.string.profile_image), contentDescription = stringResource(id = R.string.profile_image),
modifier = MaterialTheme.colorScheme.profile35dpModifier, modifier = MaterialTheme.colorScheme.profile35dpModifier,
contentScale = ContentScale.Crop, contentScale = ContentScale.Crop,
loadProfilePicture = automaticallyShowProfilePicture, loadProfilePicture = accountViewModel.settings.showProfilePictures.value,
) )
// } // }
} }