Don't cache temporary images

This commit is contained in:
Ali
2021-06-15 15:06:48 +04:00
parent 374dc79d6d
commit f8ceb1d461
4 changed files with 42 additions and 20 deletions

View File

@@ -434,8 +434,15 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
self.botStart = botStart
self.peekData = peekData
self.chatBackgroundNode = WallpaperBackgroundNode(context: context, useSharedAnimationPhase: true)
self.wallpaperReady.set(chatBackgroundNode.isReady)
var useSharedAnimationPhase = false
switch mode {
case .standard(false):
useSharedAnimationPhase = true
default:
break
}
self.chatBackgroundNode = WallpaperBackgroundNode(context: context, useSharedAnimationPhase: useSharedAnimationPhase)
self.wallpaperReady.set(self.chatBackgroundNode.isReady)
var locationBroadcastPanelSource: LocationBroadcastPanelSource
var groupCallPanelSource: GroupCallPanelSource