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

@@ -518,6 +518,7 @@ public class WebRtcCallActivity extends BaseActivity implements SafetyNumberChan
final Recipient recipient = event.getRemoteParticipants().get(0).getRecipient();
if (theirKey == null) {
Log.w(TAG, "Untrusted identity without an identity key, terminating call.");
handleTerminate(recipient, HangupMessage.Type.NORMAL);
}