Fix various bugs for chat folders.

This commit is contained in:
Michelle Tang
2024-10-21 11:02:40 -07:00
committed by Greyson Parrelli
parent b519bf6772
commit dd4fcffec4
18 changed files with 228 additions and 144 deletions

View File

@@ -19,7 +19,8 @@ import org.thoughtcrime.securesms.recipients.Recipient
@Composable
fun AvatarImage(
recipient: Recipient,
modifier: Modifier = Modifier
modifier: Modifier = Modifier,
useProfile: Boolean = true
) {
if (LocalInspectionMode.current) {
Spacer(
@@ -31,7 +32,11 @@ fun AvatarImage(
factory = ::AvatarImageView,
modifier = modifier.background(color = Color.Transparent, shape = CircleShape)
) {
it.setAvatarUsingProfile(recipient)
if (useProfile) {
it.setAvatarUsingProfile(recipient)
} else {
it.setAvatar(recipient)
}
}
}
}