From 8f506e8882dc8dfc161a0e687afcd18e5cf06f03 Mon Sep 17 00:00:00 2001 From: Marko Kocic Date: Mon, 9 Dec 2024 18:48:12 +0100 Subject: [PATCH] Add legendary customization on reactions --- .../stats/reactions/ui/GenericReactionsLazyColumn.kt | 5 +++++ .../stats/reactions/ui/ReactionsZapsLazyColumn.kt | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/net/primal/android/stats/reactions/ui/GenericReactionsLazyColumn.kt b/app/src/main/kotlin/net/primal/android/stats/reactions/ui/GenericReactionsLazyColumn.kt index 362a69699..d30352838 100644 --- a/app/src/main/kotlin/net/primal/android/stats/reactions/ui/GenericReactionsLazyColumn.kt +++ b/app/src/main/kotlin/net/primal/android/stats/reactions/ui/GenericReactionsLazyColumn.kt @@ -86,6 +86,11 @@ private fun GenericReactionListItem( NostrUserText( displayName = item.profile.authorDisplayName, internetIdentifier = item.profile.internetIdentifier, + customBadgeStyle = if (item.profile.premiumDetails?.legendaryCustomization?.customBadge == true) { + item.profile.premiumDetails.legendaryCustomization.legendaryStyle + } else { + null + }, ) }, trailingContent = { diff --git a/app/src/main/kotlin/net/primal/android/stats/reactions/ui/ReactionsZapsLazyColumn.kt b/app/src/main/kotlin/net/primal/android/stats/reactions/ui/ReactionsZapsLazyColumn.kt index 50efa1960..88c7956fb 100644 --- a/app/src/main/kotlin/net/primal/android/stats/reactions/ui/ReactionsZapsLazyColumn.kt +++ b/app/src/main/kotlin/net/primal/android/stats/reactions/ui/ReactionsZapsLazyColumn.kt @@ -89,7 +89,15 @@ private fun NoteZapListItem(data: EventZapUiModel, onProfileClick: (profileId: S ) }, headlineContent = { - NostrUserText(displayName = data.zapperName, internetIdentifier = data.zapperInternetIdentifier) + NostrUserText( + displayName = data.zapperName, + internetIdentifier = data.zapperInternetIdentifier, + customBadgeStyle = if (data.zapperLegendaryCustomization?.customBadge == true) { + data.zapperLegendaryCustomization.legendaryStyle + } else { + null + }, + ) }, supportingContent = { if (!data.message.isNullOrEmpty()) {