Fix jpeg compression memory leak

This commit is contained in:
Ali
2023-09-26 13:31:19 +04:00
parent 9a81ffca02
commit ca9d0b568d
432 changed files with 28216 additions and 19309 deletions

View File

@@ -12335,8 +12335,9 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
if updatedChatPresentationInterfaceState.interfaceState.selectionState != controllerInteraction.selectionState {
controllerInteraction.selectionState = updatedChatPresentationInterfaceState.interfaceState.selectionState
let isBlackout = controllerInteraction.selectionState != nil
let previousCompletion = completion
completion = { [weak self] transition in
completion(transition)
previousCompletion(transition)
(self?.navigationController as? NavigationController)?.updateMasterDetailsBlackout(isBlackout ? .master : nil, transition: transition)
}
self.updateItemNodesSelectionStates(animated: transition.isAnimated)