Skip to content

Commit 3adb572

Browse files
committed
missed some things
1 parent f8abb24 commit 3adb572

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public void displayIncomingCall(String uuid, String identifier, String callerTyp
143143
extras.putString(EXTRA_CALL_UUID, uuid);
144144

145145
if (callHasVideo) {
146-
extras.putParcelable(TelecomManager.EXTRA_START_CALL_WITH_VIDEO_STATE, VideoProfile.STATE_BIDIRECTIONAL);
146+
extras.putInt(TelecomManager.EXTRA_START_CALL_WITH_VIDEO_STATE, VideoProfile.STATE_BIDIRECTIONAL);
147147
}
148148

149149
telecomManager.addNewIncomingCall(handle, extras);
@@ -183,7 +183,7 @@ public void startCall(String uuid, String identifer, String callerName, String c
183183
extras.putParcelable(TelecomManager.EXTRA_OUTGOING_CALL_EXTRAS, callExtras);
184184

185185
if (callHasVideo) {
186-
extras.putParcelable(TelecomManager.EXTRA_INCOMING_VIDEO_STATE, VideoProfile.STATE_BIDIRECTIONAL);
186+
extras.putInt(TelecomManager.EXTRA_INCOMING_VIDEO_STATE, VideoProfile.STATE_BIDIRECTIONAL);
187187
}
188188

189189
telecomManager.placeCall(uri, extras);
@@ -566,7 +566,7 @@ public void onReceive(Context context, Intent intent) {
566566
sendEventToJS("RNCallKeepDidPerformDTMFAction", args);
567567
break;
568568
case ACTION_ONGOING_CALL:
569-
args.putString("handle", attributeMap.get(EXTRA_CALL_NUMBER));
569+
args.putString("handle", attributeMap.get(EXTRA_CALL_IDENTIFIER));
570570
args.putString("callUUID", attributeMap.get(EXTRA_CALL_UUID));
571571
args.putString("name", attributeMap.get(EXTRA_CALLER_NAME));
572572
sendEventToJS("RNCallKeepDidReceiveStartCallAction", args);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ private Connection makeOutgoingCall(ConnectionRequest request, String uuid, Bool
168168
}
169169

170170
// TODO: Hold all other calls
171-
if (extrasIdentifier == null || !extrasIdentifier.equals(number)) {
171+
if (extrasIdentifier == null || !extrasIdentifier.equals(identifier)) {
172172
extras.putString(EXTRA_CALL_UUID, uuid);
173173
extras.putString(EXTRA_CALLER_NAME, displayName);
174174
extras.putString(EXTRA_CALL_IDENTIFIER, identifier);

0 commit comments

Comments
 (0)