fix: only load 256 max side avatar
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
parent
bbed593932
commit
3a54f4cb44
|
|
@ -87,7 +87,7 @@ fun UserAvatar(
|
||||||
) {
|
) {
|
||||||
if (avatar != null) {
|
if (avatar != null) {
|
||||||
RemoteImage(
|
RemoteImage(
|
||||||
url = rawUrl ?: "$REVOLT_FILES/avatars/${avatar.id!!}/user.png",
|
url = rawUrl ?: "$REVOLT_FILES/avatars/${avatar.id!!}/user.png?max_side=256",
|
||||||
contentScale = ContentScale.Crop,
|
contentScale = ContentScale.Crop,
|
||||||
description = stringResource(id = R.string.avatar_alt, username),
|
description = stringResource(id = R.string.avatar_alt, username),
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue