Handle group call creation failure.
This commit is contained in:
parent
faa4208209
commit
e1d4566dfd
4 changed files with 13 additions and 1 deletions
|
@ -56,6 +56,10 @@ public class GroupNetworkUnavailableActionProcessor extends WebRtcActionProcesso
|
|||
RingRtcDynamicConfiguration.shouldUseOboeAdm(),
|
||||
webRtcInteractor.getGroupCallObserver());
|
||||
|
||||
if (groupCall == null) {
|
||||
return groupCallFailure(currentState, "RingRTC did not create a group call", null);
|
||||
}
|
||||
|
||||
return currentState.builder()
|
||||
.changeCallInfoState()
|
||||
.callState(WebRtcViewModel.State.NETWORK_FAILURE)
|
||||
|
|
|
@ -54,6 +54,10 @@ public class GroupPreJoinActionProcessor extends GroupActionProcessor {
|
|||
RingRtcDynamicConfiguration.shouldUseOboeAdm(),
|
||||
webRtcInteractor.getGroupCallObserver());
|
||||
|
||||
if (groupCall == null) {
|
||||
return groupCallFailure(currentState, "RingRTC did not create a group call", null);
|
||||
}
|
||||
|
||||
try {
|
||||
groupCall.setOutgoingAudioMuted(true);
|
||||
groupCall.setOutgoingVideoMuted(true);
|
||||
|
|
|
@ -189,6 +189,10 @@ public final class IncomingGroupCallActionProcessor extends DeviceAwareActionPro
|
|||
RingRtcDynamicConfiguration.shouldUseOboeAdm(),
|
||||
webRtcInteractor.getGroupCallObserver());
|
||||
|
||||
if (groupCall == null) {
|
||||
return groupCallFailure(currentState, "RingRTC did not create a group call", null);
|
||||
}
|
||||
|
||||
try {
|
||||
groupCall.setOutgoingAudioMuted(true);
|
||||
groupCall.setOutgoingVideoMuted(true);
|
||||
|
|
|
@ -850,7 +850,7 @@ public abstract class WebRtcActionProcessor {
|
|||
return currentState;
|
||||
}
|
||||
|
||||
protected @NonNull WebRtcServiceState groupCallFailure(@NonNull WebRtcServiceState currentState, @NonNull String message, @NonNull Throwable error) {
|
||||
protected @NonNull WebRtcServiceState groupCallFailure(@NonNull WebRtcServiceState currentState, @NonNull String message, @Nullable Throwable error) {
|
||||
Log.w(tag, "groupCallFailure(): " + message, error);
|
||||
|
||||
GroupCall groupCall = currentState.getCallInfoState().getGroupCall();
|
||||
|
|
Loading…
Add table
Reference in a new issue