auto-accept calls for testing

This commit is contained in:
adbenitez 2025-09-09 17:39:29 +02:00
parent f6ce98f9a2
commit 7ec87f55b6

View file

@ -25,11 +25,11 @@ public class VideochatUtil {
int chatId = dcMsg.getChatId(); int chatId = dcMsg.getChatId();
String hash = "#offer=" + payload; String hash = "#offer=" + payload;
DcHelper.getNotificationCenter(activity).addCallNotification(accId, chatId, callId); //DcHelper.getNotificationCenter(activity).addCallNotification(accId, chatId, callId);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
CallIntegrationService.addNewIncomingCall(activity, accId, chatId, callId, payload); CallIntegrationService.addNewIncomingCall(activity, accId, chatId, callId, payload);
} }
//openCall(activity, chatId, callId, hash); openCall(activity, chatId, callId, hash);
} }
private static void openCall(Activity activity, int chatId, int callId, String hash) { private static void openCall(Activity activity, int chatId, int callId, String hash) {