mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-01 20:28:05 +00:00
Various fixes
This commit is contained in:
parent
b40dd4320b
commit
18e051650a
@ -292,26 +292,28 @@ class ItemListRecentSessionItemNode: ItemListRevealOptionsItemNode {
|
||||
if let openingRoundBraceRange = appVersion.range(of: " ("), let closingRoundBraceRange = appVersion.range(of: ")") {
|
||||
appVersion = appVersion.replacingCharacters(in: openingRoundBraceRange.lowerBound ..< closingRoundBraceRange.upperBound, with: "")
|
||||
}
|
||||
titleAttributedString = NSAttributedString(string: "\(item.session.appName) \(appVersion)", font: titleFont, textColor: item.presentationData.theme.list.itemPrimaryTextColor)
|
||||
|
||||
var deviceString = ""
|
||||
if !item.session.deviceModel.isEmpty {
|
||||
deviceString = item.session.deviceModel
|
||||
}
|
||||
|
||||
if !item.session.platform.isEmpty {
|
||||
if !deviceString.isEmpty {
|
||||
deviceString += ", "
|
||||
}
|
||||
deviceString += item.session.platform
|
||||
}
|
||||
// if !item.session.platform.isEmpty {
|
||||
// if !deviceString.isEmpty {
|
||||
// deviceString += ", "
|
||||
// }
|
||||
// deviceString += item.session.platform
|
||||
// }
|
||||
|
||||
var updatedIcon: UIImage?
|
||||
if item.session != currentItem?.session {
|
||||
updatedIcon = iconForSession(item.session).0
|
||||
}
|
||||
|
||||
appAttributedString = NSAttributedString(string: deviceString, font: textFont, textColor: item.presentationData.theme.list.itemPrimaryTextColor)
|
||||
let appString = "\(item.session.appName) \(appVersion)"
|
||||
|
||||
titleAttributedString = NSAttributedString(string: deviceString, font: titleFont, textColor: item.presentationData.theme.list.itemPrimaryTextColor)
|
||||
appAttributedString = NSAttributedString(string: appString, font: textFont, textColor: item.presentationData.theme.list.itemPrimaryTextColor)
|
||||
|
||||
let label: String
|
||||
if item.session.isCurrent {
|
||||
|
||||
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user