Video Chat Improvements

This commit is contained in:
Ilya Laktyushin
2021-05-23 15:10:20 +04:00
parent 9a2456188c
commit 86fa2f2724
2 changed files with 22 additions and 0 deletions

View File

@@ -1985,6 +1985,17 @@ public final class VoiceChatController: ViewController {
strongSelf.dismissScheduled()
}
}
self.mainStageNode.controlsHidden = { [weak self] hidden in
if let strongSelf = self {
if hidden {
strongSelf.fullscreenListNode.alpha = 0.0
} else {
strongSelf.fullscreenListNode.alpha = 1.0
strongSelf.fullscreenListNode.layer.animateAlpha(from: 0.0, to: 1.0, duration: 0.2)
}
}
}
self.mainStageNode.tapped = { [weak self] in
if let strongSelf = self {