In prerelease, enable background throttling when not on a call

This commit is contained in:
Evan Hahn
2021-09-28 14:00:22 -05:00
committed by GitHub
parent 2f7226e200
commit 942ce16610
7 changed files with 59 additions and 2 deletions

View File

@@ -960,6 +960,14 @@ function returnToActiveCall(): ReturnToActiveCallActionType {
};
}
function setIsCallActive(
isCallActive: boolean
): ThunkAction<void, RootStateType, unknown, never> {
return () => {
window.SignalContext.setIsCallActive(isCallActive);
};
}
function setLocalPreview(
payload: SetLocalPreviewType
): ThunkAction<void, RootStateType, unknown, never> {
@@ -1203,6 +1211,7 @@ export const actions = {
remoteVideoChange,
returnToActiveCall,
setGroupCallVideoRequest,
setIsCallActive,
setLocalAudio,
setLocalPreview,
setLocalVideo,