Various fixes

This commit is contained in:
Ilya Laktyushin 2025-09-03 21:44:56 +05:00
parent 3f9820f2ef
commit 3c61b4a1e4

View File

@ -502,7 +502,7 @@ final class GiftsListView: UIView {
peer = nil
resellAmount = gift.resellAmounts?.first(where: { $0.currency == .stars })
if let _ = resellAmount {
if !(gift.resellAmounts ?? []).isEmpty {
ribbonText = params.presentationData.strings.PeerInfo_Gifts_Sale
ribbonFont = .larger
ribbonColor = .green