Skip to content

Commit df09dcb

Browse files
authored
Add legendary custom badge on reactions (#245)
1 parent 575f078 commit df09dcb

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

app/src/main/kotlin/net/primal/android/stats/reactions/ui/GenericReactionsLazyColumn.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ private fun GenericReactionListItem(
8686
NostrUserText(
8787
displayName = item.profile.authorDisplayName,
8888
internetIdentifier = item.profile.internetIdentifier,
89+
customBadgeStyle = if (item.profile.premiumDetails?.legendaryCustomization?.customBadge == true) {
90+
item.profile.premiumDetails.legendaryCustomization.legendaryStyle
91+
} else {
92+
null
93+
},
8994
)
9095
},
9196
trailingContent = {

app/src/main/kotlin/net/primal/android/stats/reactions/ui/ReactionsZapsLazyColumn.kt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,15 @@ private fun NoteZapListItem(data: EventZapUiModel, onProfileClick: (profileId: S
8989
)
9090
},
9191
headlineContent = {
92-
NostrUserText(displayName = data.zapperName, internetIdentifier = data.zapperInternetIdentifier)
92+
NostrUserText(
93+
displayName = data.zapperName,
94+
internetIdentifier = data.zapperInternetIdentifier,
95+
customBadgeStyle = if (data.zapperLegendaryCustomization?.customBadge == true) {
96+
data.zapperLegendaryCustomization.legendaryStyle
97+
} else {
98+
null
99+
},
100+
)
93101
},
94102
supportingContent = {
95103
if (!data.message.isNullOrEmpty()) {

0 commit comments

Comments
 (0)