mirror of
https://github.com/stoatchat/for-android.git
synced 2026-07-21 04:25:25 -04:00
fix: never request invalid default avatar
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
@@ -119,7 +119,7 @@ fun UserAvatar(
|
||||
)
|
||||
} else {
|
||||
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),
|
||||
modifier = Modifier
|
||||
.clip(RoundedCornerShape(GlobalState.avatarRadius))
|
||||
|
||||
Reference in New Issue
Block a user