fix: do not animate server and channel icons

Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
Infi 2024-12-21 21:29:57 +01:00
parent bcfdcd6496
commit 6bd5094a7a
6 changed files with 6 additions and 0 deletions

View File

@ -207,6 +207,7 @@ fun InviteScreen(
if (invite?.serverIcon != null) {
RemoteImage(
url = "$REVOLT_FILES/icons/${invite.serverIcon.id}/${invite.serverIcon.filename}",
allowAnimation = false,
description = viewModel.inviteResult?.value?.serverName
?: stringResource(id = R.string.unknown),
modifier = Modifier

View File

@ -405,6 +405,7 @@ fun EmojiPicker(
} else {
RemoteImage(
url = "$REVOLT_FILES/icons/${server.icon.id}",
allowAnimation = false,
description = server.name,
modifier = Modifier
.clip(CircleShape)

View File

@ -168,6 +168,7 @@ fun GroupIcon(
if (icon?.id != null) {
RemoteImage(
url = rawUrl ?: "$REVOLT_FILES/icons/${icon.id}",
allowAnimation = false,
contentScale = ContentScale.Crop,
description = stringResource(id = R.string.avatar_alt, name),
modifier = Modifier

View File

@ -71,6 +71,7 @@ fun ChannelSheetHeader(
contentScale = ContentScale.Crop,
height = 48,
width = 48,
allowAnimation = false,
modifier = Modifier
.size(48.dp)
)

View File

@ -343,6 +343,7 @@ fun ChannelSideDrawer(
if (icon != null) {
RemoteImage(
url = icon,
allowAnimation = false,
modifier = Modifier
.size(48.dp)
.clip(CircleShape),

View File

@ -82,6 +82,7 @@ fun ServerOverview(server: Server) {
RemoteImage(
url = "$REVOLT_FILES/icons/${it.id}",
description = null,
allowAnimation = false,
modifier = Modifier
.clip(CircleShape)
.height(48.dp)