Skip to content

Commit 7b3cf92

Browse files
committed
Various fixes
1 parent b41ec12 commit 7b3cf92

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,6 +1678,8 @@ func _internal_sendStarsPaymentForm(account: Account, formId: Int64, source: Bot
16781678
return .fail(.alreadyPaid)
16791679
} else if error.errorDescription == "STARGIFT_USAGE_LIMITED" {
16801680
return .fail(.starGiftOutOfStock)
1681+
} else if error.errorDescription == "STARGIFT_USER_USAGE_LIMITED" {
1682+
return .fail(.starGiftUserLimit)
16811683
}
16821684
return .fail(.generic)
16831685
}

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,12 @@ final class GiftSetupScreenComponent: Component {
477477
case .starGiftUserLimit:
478478
if let perUserLimit, let giftFile {
479479
let text = presentationData.strings.Gift_Options_Gift_BuyLimitReached(perUserLimit)
480-
let undoController = UndoOverlayController(presentationData: presentationData, content: .sticker(context: component.context, file: giftFile, loop: true, title: nil, text: text, undoText: nil, customAction: nil), action: { _ in return false })
480+
let undoController = UndoOverlayController(
481+
presentationData: presentationData,
482+
content: .sticker(context: component.context, file: giftFile, loop: true, title: nil, text: text, undoText: nil, customAction: nil),
483+
elevatedLayout: true,
484+
action: { _ in return false }
485+
)
481486
controller.present(undoController, in: .current)
482487
return
483488
}

0 commit comments

Comments
 (0)