Skip to content

Commit 807fa89

Browse files
committed
Various fixes
1 parent 493e91f commit 807fa89

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,14 @@ public final class GiftAuctionContext {
102102
}
103103
}
104104

105+
public var isFinished: Bool {
106+
if case .finished = self.auctionState {
107+
return true
108+
} else {
109+
return false
110+
}
111+
}
112+
105113
public convenience init(account: Account, gift: StarGift) {
106114
self.init(account: account, gift: gift, initialAuctionState: nil, initialMyState: nil, initialTimeout: nil)
107115
}

submodules/TelegramUI/Components/Gifts/GiftItemComponent/Sources/GiftItemComponent.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ public final class GiftItemComponent: Component {
698698
containerSize: availableSize
699699
)
700700

701-
let badgeBackgroundSize = CGSize(width: badgeTextSize.width + 8.0, height: 18.0)
701+
let badgeBackgroundSize = CGSize(width: badgeTextSize.width + 12.0, height: 18.0)
702702
let _ = self.badgeBackground.update(
703703
transition: .spring(duration: 0.2),
704704
component: AnyComponent(

submodules/TelegramUI/Components/Gifts/GiftViewScreen/Sources/GiftAuctionBidScreen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3286,7 +3286,7 @@ private final class AuctionStatComponent: Component {
32863286
strings: presentationData.strings,
32873287
peer: nil,
32883288
subject: .starGift(gift: gift, price: ""),
3289-
mode: .tableIcon
3289+
mode: .buttonIcon
32903290
)
32913291
),
32923292
environment: {},

submodules/TelegramUI/Sources/OpenResolvedUrl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,7 @@ func openResolvedUrlImpl(
15001500
}
15011501
case let .auction(auctionContext):
15021502
if let auctionContext, case let .generic(gift) = auctionContext.gift {
1503-
if let currentBidPeerId = auctionContext.currentBidPeerId {
1503+
if !auctionContext.isFinished, let currentBidPeerId = auctionContext.currentBidPeerId {
15041504
let controller = context.sharedContext.makeGiftAuctionBidScreen(
15051505
context: context,
15061506
toPeerId: currentBidPeerId,

0 commit comments

Comments
 (0)