Update ringrtc to v1.0.1

Add support for RingRTC Call Manager, a new component which provides
the control layer for all calling features.
This commit is contained in:
Curt Brune
2020-02-11 19:56:16 -08:00
committed by Greyson Parrelli
parent 81532cad95
commit 0970fd7040
16 changed files with 1789 additions and 1387 deletions

View File

@@ -9,6 +9,7 @@ import android.text.TextUtils;
import org.thoughtcrime.securesms.WebRtcCallActivity;
import org.thoughtcrime.securesms.recipients.Recipient;
import org.thoughtcrime.securesms.ringrtc.RemotePeer;
import org.thoughtcrime.securesms.service.WebRtcCallService;
import org.thoughtcrime.securesms.util.concurrent.SimpleTask;
@@ -32,8 +33,8 @@ public class VoiceCallShare extends Activity {
SimpleTask.run(() -> Recipient.external(this, destination), recipient -> {
if (!TextUtils.isEmpty(destination)) {
Intent serviceIntent = new Intent(this, WebRtcCallService.class);
serviceIntent.setAction(WebRtcCallService.ACTION_OUTGOING_CALL);
serviceIntent.putExtra(WebRtcCallService.EXTRA_REMOTE_RECIPIENT, recipient.getId());
serviceIntent.setAction(WebRtcCallService.ACTION_OUTGOING_CALL)
.putExtra(WebRtcCallService.EXTRA_REMOTE_PEER, new RemotePeer(recipient.getId()));
startService(serviceIntent);
Intent activityIntent = new Intent(this, WebRtcCallActivity.class);