diff --git a/Signal/src/call/CallService.swift b/Signal/src/call/CallService.swift index 59913b207..1991e4691 100644 --- a/Signal/src/call/CallService.swift +++ b/Signal/src/call/CallService.swift @@ -1114,6 +1114,10 @@ protocol CallServiceObserver: class { } } } + + // Prevent screen from dimming during video call. + let hasLocalOrRemoteVideo = localVideoTrack != nil || remoteVideoTrack != nil + UIApplication.shared.isIdleTimerDisabled = hasLocalOrRemoteVideo } }