File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
submodules/TelegramUI/Components/Gifts/GiftViewScreen/Sources Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -3248,10 +3248,14 @@ private final class GiftViewSheetContent: CombinedComponent {
3248
3248
addressToOpen = address
3249
3249
descriptionText = strings. Gift_View_TonGiftAddressInfo
3250
3250
} 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
+ }
3253
3257
} else {
3254
- descriptionText = savedToProfile ? strings. Gift_View_DisplayedInfoNew : strings. Gift_View_HiddenInfoNew
3258
+ descriptionText = isChannelGift ? strings. Gift_View_UniqueHiddenInfo_Channel : strings. Gift_View_UniqueHiddenInfo
3255
3259
}
3256
3260
if !savedToProfile {
3257
3261
descriptionText = " # \( descriptionText) "
@@ -3492,7 +3496,7 @@ private final class GiftViewSheetContent: CombinedComponent {
3492
3496
availableSize: buttonSize,
3493
3497
transition: context. transition
3494
3498
)
3495
- } else if incoming && !converted && !upgraded {
3499
+ } else if incoming && !converted && !upgraded && canUpgrade {
3496
3500
let buttonTitle : String
3497
3501
if let upgradeStars, upgradeStars > 0 {
3498
3502
buttonTitle = strings. Gift_View_UpgradeForFree
You can’t perform that action at this time.
0 commit comments