Skip to content

Commit a8d4de1

Browse files
committed
- auctions, small fix
1 parent 87baa1b commit a8d4de1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

submodules/TelegramCore/Sources/TelegramEngine/Payments/StarGiftsAuctions.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ public final class GiftAuctionContext {
7878
public let gift: StarGift
7979

8080
public var isActive: Bool {
81-
return myState?.bidAmount != nil
81+
if case .finished = auctionState {
82+
return false
83+
} else {
84+
return myState?.bidAmount != nil
85+
}
8286
}
8387

8488
private let disposable = MetaDisposable()

0 commit comments

Comments
 (0)