Skip to content

Commit 6af750e

Browse files
committed
Various fixes
1 parent 5d143f5 commit 6af750e

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

Telegram/Telegram-iOS/en.lproj/Localizable.strings

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14973,7 +14973,6 @@ Sorry for the inconvenience.";
1497314973
"Gift.Value.MinimumPriceInfo" = "**%1$@** is the floor price for %2$@ gifts listed on Telegram and Fragment.";
1497414974
"Gift.Value.AveragePriceInfo" = "**%1$@** is the average sale price for %2$@ gifts listed on Telegram and Fragment over the past month.";
1497514975

14976-
"Gift.Value.AveragePrice" = "Last Sale";
1497714976
"Gift.Value.InitialSale" = "Initial Sale";
1497814977
"Gift.Value.InitialPrice" = "Initial Price";
1497914978
"Gift.Value.LastSale" = "Last Sale";

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4561,11 +4561,12 @@ private final class GiftViewSheetContent: CombinedComponent {
45614561
while j < suffix.endIndex, suffix[j].isNumber {
45624562
j = suffix.index(after: j)
45634563
}
4564-
if let value = Int(suffix[i..<j]) {
4564+
let string = suffix[i..<j]
4565+
if let value = Int(string) {
45654566
buttonAnimatedTitleItems.append(
45664567
AnimatedTextComponent.Item(
45674568
id: AnyHashable(buttonAnimatedTitleItems.count),
4568-
content: .number(value, minDigits: 1)
4569+
content: .number(value, minDigits: string.count)
45694570
)
45704571
)
45714572
}

submodules/TelegramUI/Components/Settings/PeerNameColorScreen/Sources/UserApperanceScreen.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,16 @@ final class UserAppearanceScreenComponent: Component {
17521752
var buttonTitle = environment.strings.ProfileColorSetup_ApplyStyle
17531753
var buttonAttributedSubtitleString: NSMutableAttributedString?
17541754

1755-
if let gift = self.selectedProfileGift, let resellAmounts = gift.resellAmounts, let starsAmount = resellAmounts.first(where: { $0.currency == .stars }) {
1755+
let selectedGift: StarGift.UniqueGift?
1756+
if let gift = self.selectedProfileGift {
1757+
selectedGift = gift
1758+
} else if let gift = self.selectedNameGift {
1759+
selectedGift = gift
1760+
} else {
1761+
selectedGift = nil
1762+
}
1763+
1764+
if let gift = selectedGift, let resellAmounts = gift.resellAmounts, let starsAmount = resellAmounts.first(where: { $0.currency == .stars }) {
17561765
let resellAmount: CurrencyAmount
17571766
if gift.resellForTonOnly {
17581767
resellAmount = resellAmounts.first(where: { $0.currency == .ton }) ?? starsAmount

versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"app": "12.1",
2+
"app": "12.1.1",
33
"xcode": "26.0",
44
"bazel": "8.3.1:0cac3a67dc5429c68272dc6944104952e9e4cf84b29d126a5ff3fbaa59045217",
55
"macos": "26"

0 commit comments

Comments
 (0)