Fix crash when receiving call with no corresponding identity key.

This commit is contained in:
Cody Henthorne
2021-02-17 10:26:45 -05:00
committed by GitHub
parent a1457d22d6
commit 214cb25d1b
5 changed files with 31 additions and 10 deletions

View File

@@ -533,7 +533,7 @@ public abstract class WebRtcActionProcessor {
if (errorCallState == WebRtcViewModel.State.UNTRUSTED_IDENTITY) {
CallParticipant participant = Objects.requireNonNull(currentState.getCallInfoState().getRemoteCallParticipant(activePeer.getRecipient()));
CallParticipant untrusted = participant.withIdentityKey(identityKey.get());
CallParticipant untrusted = participant.withIdentityKey(identityKey.orNull());
builder.changeCallInfoState()
.callState(WebRtcViewModel.State.UNTRUSTED_IDENTITY)