do not fetch keys before making call

This commit is contained in:
Daniel Gultsch 2021-05-08 11:21:33 +02:00
parent 9182a300c5
commit 7476dccc0e
1 changed files with 0 additions and 6 deletions

View File

@ -1355,9 +1355,6 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
return; return;
} }
if (hasPermissions(REQUEST_START_AUDIO_CALL, Manifest.permission.RECORD_AUDIO)) { if (hasPermissions(REQUEST_START_AUDIO_CALL, Manifest.permission.RECORD_AUDIO)) {
if (Config.REQUIRE_RTP_VERIFICATION && trustKeysIfNeeded(conversation, REQUEST_START_AUDIO_CALL)) {
return;
}
triggerRtpSession(RtpSessionActivity.ACTION_MAKE_VOICE_CALL); triggerRtpSession(RtpSessionActivity.ACTION_MAKE_VOICE_CALL);
} }
} }
@ -1368,9 +1365,6 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
return; return;
} }
if (hasPermissions(REQUEST_START_VIDEO_CALL, Manifest.permission.RECORD_AUDIO, Manifest.permission.CAMERA)) { if (hasPermissions(REQUEST_START_VIDEO_CALL, Manifest.permission.RECORD_AUDIO, Manifest.permission.CAMERA)) {
if (Config.REQUIRE_RTP_VERIFICATION && trustKeysIfNeeded(conversation, REQUEST_START_VIDEO_CALL)) {
return;
}
triggerRtpSession(RtpSessionActivity.ACTION_MAKE_VIDEO_CALL); triggerRtpSession(RtpSessionActivity.ACTION_MAKE_VIDEO_CALL);
} }
} }