Convert Recipient to kotlin.

This commit is contained in:
Greyson Parrelli
2024-04-03 12:23:55 -04:00
parent b50eab230d
commit 3ba2b46bb0
100 changed files with 1513 additions and 2020 deletions

View File

@@ -122,7 +122,7 @@ data class NotificationConversation(
StoryViewerArgs(
recipientId = recipient.id,
storyId = thread.groupStoryId,
isInHiddenStoryMode = recipient.shouldHideStory(),
isInHiddenStoryMode = recipient.shouldHideStory,
isFromNotification = true,
groupReplyStartPosition = mostRecentNotification.getStartingPosition(context)
)

View File

@@ -41,7 +41,7 @@ fun Recipient.getContactDrawable(context: Context): Drawable? {
return if (contactPhoto != null) {
try {
val transforms: MutableList<Transformation<Bitmap>> = mutableListOf()
if (shouldBlurAvatar()) {
if (shouldBlurAvatar) {
transforms += BlurTransformation(ApplicationDependencies.getApplication(), 0.25f, BlurTransformation.MAX_RADIUS)
}
transforms += CircleCrop()