Fix group call not ringing/notifying bug when starting a call.

This commit is contained in:
Cody Henthorne
2023-10-24 11:54:43 -04:00
parent a45c685893
commit 9c8f759732
2 changed files with 11 additions and 9 deletions

View File

@@ -91,15 +91,17 @@ public class GroupJoiningActionProcessor extends GroupActionProcessor {
}
}
builder.changeCallInfoState()
.callState(WebRtcViewModel.State.CALL_CONNECTED)
.groupCallState(WebRtcViewModel.GroupCallState.CONNECTED_AND_JOINED)
.callConnectedTime(System.currentTimeMillis())
.commit()
.changeLocalDeviceState()
.commit()
.actionProcessor(actionProcessorFactory.createConnectedActionProcessor(webRtcInteractor));
currentState = builder.changeCallInfoState()
.callState(WebRtcViewModel.State.CALL_CONNECTED)
.groupCallState(WebRtcViewModel.GroupCallState.CONNECTED_AND_JOINED)
.callConnectedTime(System.currentTimeMillis())
.commit()
.changeLocalDeviceState()
.commit()
.actionProcessor(actionProcessorFactory.createConnectedActionProcessor(webRtcInteractor))
.build();
builder = currentState.getActionProcessor().handleGroupJoinedMembershipChanged(currentState).builder();
} else if (device.getJoinState() == GroupCall.JoinState.JOINING) {
builder.changeCallInfoState()
.groupCallState(WebRtcViewModel.GroupCallState.CONNECTED_AND_JOINING)

View File

@@ -219,7 +219,7 @@ public final class SignalCallManager implements CallManager.Observer, GroupCall.
* @param transformer The transformation to apply to the state. Runs on the {@link #serviceExecutor}.
*/
@AnyThread
private void processStateless(@NonNull Function1<WebRtcEphemeralState, WebRtcEphemeralState> transformer) {
private void processStateless(@NonNull Function1<WebRtcEphemeralState, WebRtcEphemeralState> transformer) {
ephemeralStateStore.update(transformer);
}