Various improvements

This commit is contained in:
Ilya Laktyushin 2025-06-29 19:38:11 +02:00
parent 43091b01d2
commit 9af928467b
4 changed files with 2 additions and 23 deletions

View File

@ -14507,9 +14507,6 @@ Sorry for the inconvenience.";
"Attachment.DiscardTodoAlertText" = "Discard checklist items?";
"Auth.PremiumSignUp.ActionTitle" = "Sign up for %@";
"Auth.PremiumSignUp.ActionSubtitle" = "Get Telegram Premium for 1 week";
"Chat.PostApproval.Status.AdminApproved" = "The message was approved";
"Chat.PostApproval.Status.AdminRejected" = "The message was rejected";
"Chat.PostApproval.Status.UserApproved" = "Your message was approved";
@ -14589,10 +14586,6 @@ Sorry for the inconvenience.";
"BalanceNeeded.FragmentAction" = "Add Funds via Fragment";
"Settings.MyTon" = "My TON";
"Settings.Ton.Description" = "Use TON to submit post suggestions to channels on Telegram.";
"Settings.TransactionsTon.Title" = "TON";
"Settings.TransactionsTon.Subtitle" = "Use TON to submit post suggestions to channels on Telegram.";
"Chat.DeletePaidMessageStars.Title" = "Stars Will Be Lost";
"Chat.DeletePaidMessageStars.Text" = "You won't receive **Stars** for this post if you delete it now. The post must remain visible for at least **24 hours** after publication.";
@ -14658,8 +14651,6 @@ Sorry for the inconvenience.";
"Premium.Week.SignUp" = "Sign up for %@";
"Premium.Week.SignUpInfo" = "Get Telegram Premium for 1 week";
"Settings.MyTon" = "My TON";
"Stars.Gift.Ton.Text" = "Use TON to submit post suggestions to channels on Telegram.";
"Stars.Ton.Title" = "TON";
"Stars.Ton.Description" = "Use TON to submit post suggestions to channels on Telegram.";

View File

@ -1126,6 +1126,7 @@ private final class DemoSheetContent: CombinedComponent {
content: AnyComponent(PhoneDemoComponent(
context: component.context,
position: .top,
model: .island,
videoFile: configuration.videos["todo"],
decoration: .todo
)),

View File

@ -870,6 +870,7 @@ public class PremiumLimitsListScreen: ViewController {
content: AnyComponent(PhoneDemoComponent(
context: context,
position: .top,
model: .island,
videoFile: videos["todo"],
decoration: .todo
)),

View File

@ -193,20 +193,6 @@ public func chatTranslationState(context: AccountContext, peerId: EnginePeer.Id,
return .single(nil)
}
let translationConfiguration = TranslationConfiguration.with(appConfiguration: context.currentAppConfiguration.with { $0 })
var chatTranslationAvailable = true
switch translationConfiguration.auto {
case .system:
if #available(iOS 18.0, *) {
} else {
chatTranslationAvailable = false
}
case .alternative, .disabled:
chatTranslationAvailable = false
default:
break
}
guard canTranslateChats(context: context) else {
return .single(nil)
}