Skip to content

Commit 2ba0c6c

Browse files
committed
Add missing hasVideo attribute
1 parent d55d326 commit 2ba0c6c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ public ReactApplicationContext getContext() {
179179

180180
public void reportNewIncomingCall(String uuid, String number, String callerName, boolean hasVideo, String payload) {
181181
Log.d(TAG, "[RNCallKeepModule] reportNewIncomingCall, uuid: " + uuid + ", number: " + number + ", callerName: " + callerName);
182-
// @TODO: handle video
183182

184183
this.displayIncomingCall(uuid, number, callerName, hasVideo);
185184

@@ -188,6 +187,7 @@ public void reportNewIncomingCall(String uuid, String number, String callerName,
188187
args.putString("handle", number);
189188
args.putString("callUUID", uuid);
190189
args.putString("name", callerName);
190+
args.putString("hasVideo", hasVideo);
191191
if (payload != null) {
192192
args.putString("payload", payload);
193193
}

android/src/main/java/io/wazo/callkeep/VoiceConnectionService.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,9 @@ private Boolean canMakeOutgoingCall() {
389389

390390
private Connection createConnection(ConnectionRequest request) {
391391
Bundle extras = request.getExtras();
392+
if (request.getAddress() == null) {
393+
return null;
394+
}
392395
HashMap<String, String> extrasMap = this.bundleToMap(extras);
393396

394397
String callerNumber = request.getAddress().toString();

0 commit comments

Comments
 (0)