mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-31 15:37:01 +00:00
Web app improvements
This commit is contained in:
parent
82038c4d5c
commit
d6095101a6
@ -9916,8 +9916,6 @@ Sorry for the inconvenience.";
|
||||
|
||||
"WebApp.DisclaimerTitle" = "Terms of Use";
|
||||
"WebApp.DisclaimerText" = "You are about to use a mini app operated by an independent party not affiliated with Telegram. You must agree to the Terms of Use of mini apps to continue.";
|
||||
"WebApp.DisclaimerShortcutsText" = "**%@** shortcut will be added in your attachment menu.";
|
||||
"WebApp.DisclaimerShortcutsSettingsText" = "**%@** shortcuts will be added in your attachment menu and Settings.";
|
||||
"WebApp.DisclaimerAgree" = "I agree to the [Terms of Use]()";
|
||||
"WebApp.DisclaimerContinue" = "Continue";
|
||||
"WebApp.Disclaimer_URL" = "https://telegram.org/tos/mini-apps";
|
||||
|
@ -374,14 +374,7 @@ public func webAppTermsAlertController(
|
||||
|
||||
let title = presentationData.strings.WebApp_DisclaimerTitle
|
||||
let text = presentationData.strings.WebApp_DisclaimerText
|
||||
let additionalText: String?
|
||||
if bot.flags.contains(.showInSettings) {
|
||||
additionalText = presentationData.strings.WebApp_DisclaimerShortcutsSettingsText(bot.peer.compactDisplayTitle).string
|
||||
} else if bot.flags.contains(.showInAttachMenu) {
|
||||
additionalText = presentationData.strings.WebApp_DisclaimerShortcutsText(bot.peer.compactDisplayTitle).string
|
||||
} else {
|
||||
additionalText = nil
|
||||
}
|
||||
let additionalText: String? = nil
|
||||
|
||||
let contentNode = WebAppTermsAlertContentNode(context: context, theme: AlertControllerTheme(presentationData: presentationData), ptheme: theme, strings: strings, title: title, text: text, additionalText: additionalText, actions: actions)
|
||||
contentNode.openTerms = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user