Skip to content

Commit 3c61b4a

Browse files
committed
Various fixes
1 parent 3f9820f commit 3c61b4a

File tree

1 file changed

+1
-1
lines changed
  • submodules/TelegramUI/Components/PeerInfo/PeerInfoVisualMediaPaneNode/Sources

1 file changed

+1
-1
lines changed

submodules/TelegramUI/Components/PeerInfo/PeerInfoVisualMediaPaneNode/Sources/GiftsListView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ final class GiftsListView: UIView {
502502
peer = nil
503503
resellAmount = gift.resellAmounts?.first(where: { $0.currency == .stars })
504504

505-
if let _ = resellAmount {
505+
if !(gift.resellAmounts ?? []).isEmpty {
506506
ribbonText = params.presentationData.strings.PeerInfo_Gifts_Sale
507507
ribbonFont = .larger
508508
ribbonColor = .green

0 commit comments

Comments
 (0)