mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Fix group call not ringing/notifying bug when starting a call.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user