Do not enable ringing for call links.

This commit is contained in:
Alex Hart 2023-06-13 15:59:47 -03:00 committed by Cody Henthorne
parent 4caaa0033b
commit d19b8a125c
2 changed files with 8 additions and 0 deletions

View file

@ -87,6 +87,9 @@ class CallLinkPreJoinActionProcessor(
SignalStore.tooltips().markGroupCallingLobbyEntered()
return currentState.builder()
.changeCallSetupState(RemotePeer.GROUP_CALL_ID)
.setRingGroup(false)
.commit()
.changeCallInfoState()
.groupCall(groupCall)
.groupCallState(WebRtcViewModel.GroupCallState.DISCONNECTED)

View file

@ -973,6 +973,11 @@ private void processStateless(@NonNull Function1<WebRtcEphemeralState, WebRtcEph
}
public void sendGroupCallUpdateMessage(@NonNull Recipient recipient, @Nullable String groupCallEraId, boolean isIncoming, boolean isJoinEvent) {
if (recipient.isCallLink()) {
Log.i(TAG, "sendGroupCallUpdateMessage -- ignoring for call link");
return;
}
SignalExecutors.BOUNDED.execute(() -> {
GroupCallUpdateSendJob updateSendJob = GroupCallUpdateSendJob.create(recipient.getId(), groupCallEraId);
JobManager.Chain chain = ApplicationDependencies.getJobManager().startChain(updateSendJob);