fix: never request invalid default avatar

Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
Infi 2024-07-29 13:56:49 +02:00
parent 27842094eb
commit 80e55fbdcc
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ fun UserAvatar(
) )
} else { } else {
RemoteImage( RemoteImage(
url = "$REVOLT_BASE/users/$userId/default_avatar", url = "$REVOLT_BASE/users/${userId.ifBlank { "0".repeat(26) }}/default_avatar",
description = stringResource(id = R.string.avatar_alt, username), description = stringResource(id = R.string.avatar_alt, username),
modifier = Modifier modifier = Modifier
.clip(RoundedCornerShape(GlobalState.avatarRadius)) .clip(RoundedCornerShape(GlobalState.avatarRadius))