mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-15 21:45:19 +00:00
Swiftgram Pro label
This commit is contained in:
parent
16c1904839
commit
1002b3b229
@ -977,11 +977,21 @@ private func settingsItems(showProfileId: Bool, data: PeerInfoScreenData?, conte
|
||||
} else {
|
||||
swiftgramLabel = .none
|
||||
}
|
||||
|
||||
let hasNewSGProFeatures = {
|
||||
return false
|
||||
}
|
||||
let swiftgramProLabel: PeerInfoScreenDisclosureItem.Label
|
||||
if hasNewSGProFeatures() {
|
||||
swiftgramProLabel = .titleBadge(presentationData.strings.Settings_New, presentationData.theme.list.itemAccentColor)
|
||||
} else {
|
||||
swiftgramProLabel = .none
|
||||
}
|
||||
|
||||
|
||||
let sgWebSettings = context.currentAppConfiguration.with({ $0 }).sgWebSettings
|
||||
if sgWebSettings.global.paymentsEnabled || context.sharedContext.immediateSGStatus.status > 1 {
|
||||
items[.swiftgram]!.append(PeerInfoScreenDisclosureItem(id: 0, label: .titleBadge(presentationData.strings.Settings_New, presentationData.theme.list.itemAccentColor), text: "Swiftgram Pro", icon: PresentationResourcesSettings.swiftgramPro, action: {
|
||||
items[.swiftgram]!.append(PeerInfoScreenDisclosureItem(id: 0, label: swiftgramProLabel, text: "Swiftgram Pro", icon: PresentationResourcesSettings.swiftgramPro, action: {
|
||||
interaction.openSettings(.swiftgramPro)
|
||||
}))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user