edoctor-sendbird-calls 1.0.1-beta.5 → 1.0.1-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -43,7 +43,7 @@ class RNSendBirdCalls: RCTEventEmitter, SendBirdCallDelegate, DirectCallDelegate
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
private func setupSendBird() {
|
|
46
|
-
|
|
46
|
+
_ = UserDefaults(suiteName: "edoctorStorage")
|
|
47
47
|
let appId = "0BEF9C57-BA3B-474E-A40F-62B027AA47F6"
|
|
48
48
|
|
|
49
49
|
let config = SendBirdCall.configure(appId: appId)
|
|
@@ -130,7 +130,7 @@ class RNSendBirdCalls: RCTEventEmitter, SendBirdCallDelegate, DirectCallDelegate
|
|
|
130
130
|
return
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
print(self.TAG + "AUTHENTICATE SUCCESS
|
|
133
|
+
print(self.TAG + "AUTHENTICATE SUCCESS \(user.userId)")
|
|
134
134
|
|
|
135
135
|
resolve(["succeeded": true ,"userId": user.userId, "nickname": user.nickname ?? ""])
|
|
136
136
|
}
|
|
@@ -436,9 +436,10 @@ class RNSendBirdCalls: RCTEventEmitter, SendBirdCallDelegate, DirectCallDelegate
|
|
|
436
436
|
let isLocalVideoEnabled = call.isLocalVideoEnabled
|
|
437
437
|
let isLocalAudioEnabled = call.isLocalAudioEnabled
|
|
438
438
|
let customItems = call.customItems
|
|
439
|
+
let endResult = call.endResult
|
|
439
440
|
|
|
440
441
|
let params: NSMutableDictionary = [
|
|
441
|
-
"callId" : callId
|
|
442
|
+
"callId" : callId,
|
|
442
443
|
"duration": duration,
|
|
443
444
|
"isRemoteAudioEnabled": isRemoteAudioEnabled,
|
|
444
445
|
"isRemoteVideoEnabled": isRemoteVideoEnabled,
|
|
@@ -447,7 +448,8 @@ class RNSendBirdCalls: RCTEventEmitter, SendBirdCallDelegate, DirectCallDelegate
|
|
|
447
448
|
"isVideoCall": isVideoCall,
|
|
448
449
|
"callee" : calleeMap,
|
|
449
450
|
"caller" : callerMap,
|
|
450
|
-
"customItems": customItems
|
|
451
|
+
"customItems": customItems,
|
|
452
|
+
"endResult": endResult,
|
|
451
453
|
]
|
|
452
454
|
return params
|
|
453
455
|
}
|
|
@@ -534,10 +536,11 @@ class RNSendBirdCalls: RCTEventEmitter, SendBirdCallDelegate, DirectCallDelegate
|
|
|
534
536
|
print(TAG + "didEnd")
|
|
535
537
|
CALL_ACTIVE = nil
|
|
536
538
|
let params = getParamFromDirectCall(call: directCall)
|
|
537
|
-
print(self.TAG + "didEnd
|
|
539
|
+
print(self.TAG + "didEnd directCall: \(stringifyDirectCall(directCall))")
|
|
540
|
+
print(self.TAG + "didEnd params: \(params)")
|
|
538
541
|
sendEventWithName(eventName: RNSendBirdCalls.onEnded, params: params)
|
|
539
542
|
CXCallManager.shared.endCall(for: callId, endedAt: Date(), reason: directCall.endResult)
|
|
540
|
-
guard
|
|
543
|
+
guard directCall.callLog != nil else { return }
|
|
541
544
|
}
|
|
542
545
|
|
|
543
546
|
// MARK: - SendBirdRecordingDelegate
|