Fix outbound calls for non-play-services users

Fixes #6272
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-02-23 10:07:12 -08:00
parent 8cd50d1e82
commit 65c05e0388

View File

@ -776,7 +776,9 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
private void handleDial(final Recipient recipient) {
if (recipient == null) return;
if (isSecureVideo && TextSecurePreferences.isWebrtcCallingEnabled(this)) {
if ((isSecureVideo && TextSecurePreferences.isWebrtcCallingEnabled(this)) ||
(isSecureText && TextSecurePreferences.isGcmDisabled(this)))
{
Intent intent = new Intent(this, WebRtcCallService.class);
intent.setAction(WebRtcCallService.ACTION_OUTGOING_CALL);
intent.putExtra(WebRtcCallService.EXTRA_REMOTE_NUMBER, recipient.getNumber());