From 27d9a3a170d697c03c1ecc349b762c8ccd0bf1d2 Mon Sep 17 00:00:00 2001 From: Ali <> Date: Mon, 30 Dec 2019 13:24:50 +0400 Subject: [PATCH] Extend background time when editing messages --- submodules/TelegramCore/Sources/Account.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/submodules/TelegramCore/Sources/Account.swift b/submodules/TelegramCore/Sources/Account.swift index c48c044ca6..f226606327 100644 --- a/submodules/TelegramCore/Sources/Account.swift +++ b/submodules/TelegramCore/Sources/Account.swift @@ -1039,6 +1039,7 @@ public class Account { let importantBackgroundOperations: [Signal] = [ managedSynchronizeChatInputStateOperations(postbox: self.postbox, network: self.network) |> map { $0 ? AccountRunningImportantTasks.other : [] }, self.pendingMessageManager.hasPendingMessages |> map { !$0.isEmpty ? AccountRunningImportantTasks.pendingMessages : [] }, + self.pendingUpdateMessageManager.updatingMessageMedia |> map { !$0.isEmpty ? AccountRunningImportantTasks.pendingMessages : [] }, self.accountPresenceManager.isPerformingUpdate() |> map { $0 ? AccountRunningImportantTasks.other : [] }, self.notificationAutolockReportManager.isPerformingUpdate() |> map { $0 ? AccountRunningImportantTasks.other : [] } ]