From 65c05e0388841589a47e51ed4941aaa38007a0e5 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Thu, 23 Feb 2017 10:07:12 -0800 Subject: [PATCH] Fix outbound calls for non-play-services users Fixes #6272 // FREEBIE --- src/org/thoughtcrime/securesms/ConversationActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/ConversationActivity.java b/src/org/thoughtcrime/securesms/ConversationActivity.java index 5fb05fbef2..d857aee8ff 100644 --- a/src/org/thoughtcrime/securesms/ConversationActivity.java +++ b/src/org/thoughtcrime/securesms/ConversationActivity.java @@ -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());