Fixes the profile display for new users without pictures.
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user