Skip to content

Commit 74cdd18

Browse files
committed
Various fixes
1 parent 14ee4b5 commit 74cdd18

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3248,10 +3248,14 @@ private final class GiftViewSheetContent: CombinedComponent {
32483248
addressToOpen = address
32493249
descriptionText = strings.Gift_View_TonGiftAddressInfo
32503250
} else {
3251-
if isChannelGift {
3252-
descriptionText = savedToProfile ? strings.Gift_View_DisplayedInfoChannelNew : strings.Gift_View_HiddenInfoChannelNew
3251+
if canUpgrade || savedToProfile {
3252+
if isChannelGift {
3253+
descriptionText = savedToProfile ? strings.Gift_View_DisplayedInfoChannelNew : strings.Gift_View_HiddenInfoChannelNew
3254+
} else {
3255+
descriptionText = savedToProfile ? strings.Gift_View_DisplayedInfoNew : strings.Gift_View_HiddenInfoNew
3256+
}
32533257
} else {
3254-
descriptionText = savedToProfile ? strings.Gift_View_DisplayedInfoNew : strings.Gift_View_HiddenInfoNew
3258+
descriptionText = isChannelGift ? strings.Gift_View_UniqueHiddenInfo_Channel : strings.Gift_View_UniqueHiddenInfo
32553259
}
32563260
if !savedToProfile {
32573261
descriptionText = "# \(descriptionText)"
@@ -3492,7 +3496,7 @@ private final class GiftViewSheetContent: CombinedComponent {
34923496
availableSize: buttonSize,
34933497
transition: context.transition
34943498
)
3495-
} else if incoming && !converted && !upgraded {
3499+
} else if incoming && !converted && !upgraded && canUpgrade {
34963500
let buttonTitle: String
34973501
if let upgradeStars, upgradeStars > 0 {
34983502
buttonTitle = strings.Gift_View_UpgradeForFree

0 commit comments

Comments
 (0)