diff --git a/submodules/TelegramCallsUI/Sources/VoiceChatController.swift b/submodules/TelegramCallsUI/Sources/VoiceChatController.swift index 3416521010..a056220444 100644 --- a/submodules/TelegramCallsUI/Sources/VoiceChatController.swift +++ b/submodules/TelegramCallsUI/Sources/VoiceChatController.swift @@ -4741,7 +4741,7 @@ public final class VoiceChatController: ViewController { } } case .fullscreen: - if fabs(translation) > 32.0 { + if abs(translation) > 32.0 { if self.fullscreenListNode.layer.animationKeys()?.contains("opacity") == true { self.fullscreenListNode.layer.removeAllAnimations() } diff --git a/submodules/TelegramCallsUI/Sources/VoiceChatMainStageNode.swift b/submodules/TelegramCallsUI/Sources/VoiceChatMainStageNode.swift index ff83f85ab3..876a87cd97 100644 --- a/submodules/TelegramCallsUI/Sources/VoiceChatMainStageNode.swift +++ b/submodules/TelegramCallsUI/Sources/VoiceChatMainStageNode.swift @@ -662,6 +662,11 @@ final class VoiceChatMainStageNode: ASDisplayNode { videoNode.alpha = 0.0 } if waitForFullSize { + Queue.mainQueue().after(2.0) { + if let previousVideoNode = previousVideoNode { + previousVideoNode.removeFromSupernode() + } + } strongSelf.videoReadyDisposable.set((videoNode.ready |> filter { $0 } |> take(1)