Adjust incoming call audio initialization.

This commit is contained in:
Cody Henthorne
2022-02-17 10:58:42 -05:00
committed by Greyson Parrelli
parent ecc6a7b95e
commit 975ec47adf
5 changed files with 35 additions and 14 deletions

View File

@@ -76,6 +76,7 @@ public class BeginCallActionProcessorDelegate extends WebRtcActionProcessor {
webRtcInteractor.setCallInProgressNotification(TYPE_INCOMING_CONNECTING, remotePeer);
webRtcInteractor.retrieveTurnServers(remotePeer);
webRtcInteractor.initializeAudioForCall();
return currentState.builder()
.actionProcessor(new IncomingCallActionProcessor(webRtcInteractor))

View File

@@ -146,7 +146,6 @@ public class IncomingCallActionProcessor extends DeviceAwareActionProcessor {
}
}
webRtcInteractor.initializeAudioForCall();
if (shouldDisturbUserWithCall && SignalStore.settings().isCallNotificationsEnabled()) {
Uri ringtone = recipient.resolve().getCallRingtone();
RecipientDatabase.VibrateState vibrateState = recipient.resolve().getCallVibrate();