Skip to content

Commit

Permalink
- bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
overtake committed Jul 1, 2024
1 parent 2848d9c commit e7b2233
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions Telegram-Mac/InAppLinks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ let itunesAppLink = "https://apps.apple.com/us/app/telegram/id747648890"
let XTR: String = TelegramCurrency.xtr.rawValue
let XTRSTAR: String = "⭐️"
let XTR_ICON = "Icon_Peer_Premium"
let TINY_SPACE = "\u{2009}\u{2009}"

let TON: String = TelegramCurrency.ton.rawValue

Expand Down
2 changes: 1 addition & 1 deletion Telegram-Mac/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>265380</string>
<string>265398</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationCategoryType</key>
Expand Down
4 changes: 2 additions & 2 deletions Telegram-Mac/Star_PurchaseInApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ private final class AcceptView : Control {
func update(_ item: HeaderItem, animated: Bool) {
let attr = NSMutableAttributedString()

attr.append(string: strings().starPurchasePay("\(clown)\(item.request.count)"), color: theme.colors.underSelectedColor, font: .medium(.text))
attr.insertEmbedded(.embedded(name: XTR_ICON, color: theme.colors.underSelectedColor, resize: false), for: clown)
attr.append(string: strings().starPurchasePay("\(XTRSTAR)\(TINY_SPACE)\(item.request.count)"), color: theme.colors.underSelectedColor, font: .medium(.text))
attr.insertEmbedded(.embedded(name: XTR_ICON, color: theme.colors.underSelectedColor, resize: false), for: XTRSTAR)

let layout = TextViewLayout(attr)
layout.measure(width: item.width - 60)
Expand Down
2 changes: 1 addition & 1 deletion TelegramShare/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>265380</string>
<string>265398</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSMinimumSystemVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion packages/TGUIKit/Sources/TextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ public final class TextViewLayout : Equatable {
}

if abs(rightOffset - leftOffset) < 150, abs(rightOffset - leftOffset) > 8 {
let x = floor(min(leftOffset, rightOffset)) - 1
let x = floor(min(leftOffset, rightOffset)) + 1
var width = floor(abs(rightOffset - leftOffset) + rightInset)
if Int(width) % 2 != 0 {
width += 1
Expand Down

0 comments on commit e7b2233

Please sign in to comment.