mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 01:39:18 +02:00
don't use calls integration API
This commit is contained in:
parent
6c1a3c850a
commit
320c120a61
1 changed files with 0 additions and 7 deletions
|
@ -26,9 +26,6 @@ public class VideochatUtil {
|
|||
String hash = "#offer=" + payload;
|
||||
|
||||
//DcHelper.getNotificationCenter(activity).addCallNotification(accId, chatId, callId);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
CallIntegrationService.addNewIncomingCall(activity, accId, chatId, callId, payload);
|
||||
}
|
||||
openCall(activity, chatId, callId, hash);
|
||||
}
|
||||
|
||||
|
@ -41,10 +38,6 @@ public class VideochatUtil {
|
|||
.ifNecessary()
|
||||
.withPermanentDenialDialog(activity.getString(R.string.perm_explain_access_to_camera_denied))
|
||||
.onAllGranted(() -> {
|
||||
if ("#call".equals(hash) && Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
CallIntegrationService.registerPhoneAccount(activity, accId);
|
||||
CallIntegrationService.placeCall(activity, accId, chatId);
|
||||
}
|
||||
Intent intent = new Intent(activity, VideochatActivity.class);
|
||||
intent.setAction(Intent.ACTION_VIEW);
|
||||
intent.putExtra(VideochatActivity.EXTRA_CHAT_ID, chatId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue