Video Chat Fixes

This commit is contained in:
Ilya Laktyushin 2021-05-29 18:09:41 +04:00
parent 95779538c9
commit bee3bd2314
2 changed files with 2 additions and 2 deletions

View File

@ -4837,7 +4837,7 @@ public final class VoiceChatController: ViewController {
}
var waitForFullSize = waitForFullSize
if let (_, maybeVideoEndpointId) = effectiveSpeaker, let videoEndpointId = maybeVideoEndpointId, !self.readyVideoEndpointIds.contains(videoEndpointId) {
if let (_, maybeVideoEndpointId) = effectiveSpeaker, let videoEndpointId = maybeVideoEndpointId, !self.readyVideoEndpointIds.contains(videoEndpointId), entries == nil {
waitForFullSize = false
}

View File

@ -334,7 +334,7 @@ class VoiceChatFullscreenParticipantItemNode: ItemListRevealOptionsItemNode {
self.videoFadeNode.alpha = 1.0
self.videoFadeNode.layer.animateAlpha(from: 0.0, to: 1.0, duration: 0.2, timingFunction: CAMediaTimingFunctionName.easeInEaseOut.rawValue)
} else if initialAnimate {
} else {
videoNode.updateLayout(size: videoSize, layoutMode: .fillOrFitToSquare, transition: .immediate)
self.videoFadeNode.alpha = 1.0
}