Prevent from from going to sleep when video is active in call

This commit is contained in:
QuentinArguillere 2022-11-14 16:46:55 +01:00
parent 8909ae7279
commit 8b5668e8ce

View file

@ -97,6 +97,7 @@ class ActiveCallView: UIView { // = currentCall
self.pauseCallButtons.first?.isHidden = video != true
self.recordCallButtons.last?.isHidden = video == true
self.pauseCallButtons.last?.isHidden = video == true
UIApplication.shared.isIdleTimerDisabled = video == true
}
}