Fixes the profile display for new users without pictures.

This commit is contained in:
Vitor Pamplona
2023-07-16 18:57:48 -04:00
parent d78c7a91cb
commit 0010a19c24
@@ -160,25 +160,23 @@ fun ProfileContent(
} }
Column(modifier = modifier) { Column(modifier = modifier) {
profilePicture?.let { RobohashAsyncImageProxy(
RobohashAsyncImageProxy( robot = profilePubHex,
robot = profilePubHex, model = profilePicture,
model = profilePicture, contentDescription = stringResource(id = R.string.profile_image),
contentDescription = stringResource(id = R.string.profile_image), modifier = Modifier
modifier = Modifier .width(100.dp)
.width(100.dp) .height(100.dp)
.height(100.dp) .clip(shape = CircleShape)
.clip(shape = CircleShape) .border(3.dp, MaterialTheme.colors.background, CircleShape)
.border(3.dp, MaterialTheme.colors.background, CircleShape) .background(MaterialTheme.colors.background)
.background(MaterialTheme.colors.background) .clickable(onClick = {
.clickable(onClick = { nav(route)
nav(route) coroutineScope.launch {
coroutineScope.launch { scaffoldState.drawerState.close()
scaffoldState.drawerState.close() }
} })
}) )
)
}
if (bestDisplayName != null) { if (bestDisplayName != null) {
CreateTextWithEmoji( CreateTextWithEmoji(