Skip to content

Commit

Permalink
Add legendary customization on reactions
Browse files Browse the repository at this point in the history
  • Loading branch information
markocic committed Dec 9, 2024
1 parent 575f078 commit 8f506e8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 8f506e8

Please sign in to comment.