mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Attempt to fix iOS 14 crash
This commit is contained in:
parent
64c904706b
commit
44d9144e17
@ -1337,9 +1337,8 @@ private func extractAccountManagerState(records: AccountRecordsView<TelegramAcco
|
||||
|
||||
// MARK: Swiftgram
|
||||
updateSGWebSettingsInteractivelly(context: context.context)
|
||||
let _ = (context.context.sharedContext.presentationData.start(next: { presentationData in
|
||||
SGLocalizationManager.shared.downloadLocale(presentationData.strings.baseLanguageCode)
|
||||
}))
|
||||
let presentationData = context.context.sharedContext.currentPresentationData.with({ $0 })
|
||||
SGLocalizationManager.shared.downloadLocale(presentationData.strings.baseLanguageCode)
|
||||
if #available(iOS 13.0, *) {
|
||||
let _ = Task {
|
||||
let primaryContext = await self.getPrimaryContext(anyContext: context.context)
|
||||
|
Loading…
x
Reference in New Issue
Block a user