Skip to content

Conversation

Goooler
Copy link
Contributor

@Goooler Goooler commented Aug 26, 2025

Closes #7089.

Screenshot_20250826_161602


private suspend fun NotificationBuilder.setAvatar(content: NotificationContent) = apply {
resourceProvider.avatar(content.sender)?.let {
setLargeIcon(IconCompat.createWithAdaptiveBitmap(it).toIcon(application))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be called on minSdk 23, the current is 21. We have to bump the minSdk or update

@WorkerThread
fun getContactPicture(recipient: Recipient): Bitmap? {
val contactPictureUri = recipient.photoThumbnailUri
val address = recipient.address
return if (contactPictureUri != null) {
getContactPicture(contactPictureUri)
} else {
getFallbackPicture(address)
}
}

to accept a Transformation for CircleCrop for avatars.

@asoucar
Copy link
Contributor

asoucar commented Sep 3, 2025

Thanks for working on this! We're going to run this by design before reviewing but then we'll get back to it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show avatar on message notification
2 participants