From e7fdd14b237422072d2930a8ea1b709def78d465 Mon Sep 17 00:00:00 2001 From: Ali <> Date: Tue, 14 Feb 2023 17:47:49 +0400 Subject: [PATCH] Load presentation data on background queue to avoid deadlock --- .../TelegramPresentationData/Sources/PresentationData.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/TelegramPresentationData/Sources/PresentationData.swift b/submodules/TelegramPresentationData/Sources/PresentationData.swift index fcf94dde00..17ea8d3028 100644 --- a/submodules/TelegramPresentationData/Sources/PresentationData.swift +++ b/submodules/TelegramPresentationData/Sources/PresentationData.swift @@ -289,7 +289,7 @@ public func currentPresentationDataAndSettings(accountManager: AccountManager deliverOn(Queue.mainQueue()) + |> deliverOn(Queue(name: "PresentationData-Load", qos: .userInteractive)) |> map { internalData -> InitialPresentationDataAndSettings in let localizationSettings: LocalizationSettings? if let current = internalData.localizationSettings?.get(LocalizationSettings.self) {