edoctor-sendbird-calls 1.0.1-beta.2 → 1.0.1-beta.4
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.
|
@@ -130,7 +130,7 @@ class RNSendBirdCalls: RCTEventEmitter, SendBirdCallDelegate, DirectCallDelegate
|
|
|
130
130
|
return
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
print(TAG + "AUTHENTICATE SUCCESS" + user.userId)
|
|
133
|
+
print(self.TAG + "AUTHENTICATE SUCCESS" + user.userId)
|
|
134
134
|
|
|
135
135
|
resolve(["succeeded": true ,"userId": user.userId, "nickname": user.nickname ?? ""])
|
|
136
136
|
}
|
|
@@ -139,9 +139,9 @@ class RNSendBirdCalls: RCTEventEmitter, SendBirdCallDelegate, DirectCallDelegate
|
|
|
139
139
|
@objc func deAuthenticate(_ resolve: @escaping RCTPromiseResolveBlock, rejecter reject: @escaping RCTPromiseRejectBlock) -> Void {
|
|
140
140
|
SendBirdCall.unregisterAllVoIPPushTokens { error in
|
|
141
141
|
guard error == nil else {
|
|
142
|
-
print(TAG + "error deauthen")
|
|
142
|
+
print(self.TAG + "error deauthen")
|
|
143
143
|
let message = error?.localizedDescription ?? "Có lỗi xảy ra"
|
|
144
|
-
print(TAG + message)
|
|
144
|
+
print(self.TAG + message)
|
|
145
145
|
return
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -153,7 +153,7 @@ class RNSendBirdCalls: RCTEventEmitter, SendBirdCallDelegate, DirectCallDelegate
|
|
|
153
153
|
return
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
print(TAG + "DEAUTHENTICATE SUCCESS")
|
|
156
|
+
print(self.TAG + "DEAUTHENTICATE SUCCESS")
|
|
157
157
|
resolve(["succeeded": true ])
|
|
158
158
|
}
|
|
159
159
|
}
|
|
@@ -184,7 +184,7 @@ class RNSendBirdCalls: RCTEventEmitter, SendBirdCallDelegate, DirectCallDelegate
|
|
|
184
184
|
return
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
print(TAG + "DIAL SUCCESS")
|
|
187
|
+
print(self.TAG + "DIAL SUCCESS")
|
|
188
188
|
resolve(["succeeded": true ,"callId": call.callId, "caller": call.caller?.userId ?? "", "callee": call.callee?.userId ?? ""])
|
|
189
189
|
}
|
|
190
190
|
CALL_ACTIVE = directCall;
|
|
@@ -534,6 +534,7 @@ class RNSendBirdCalls: RCTEventEmitter, SendBirdCallDelegate, DirectCallDelegate
|
|
|
534
534
|
print(TAG + "didEnd")
|
|
535
535
|
CALL_ACTIVE = nil
|
|
536
536
|
let params = getParamFromDirectCall(call: directCall)
|
|
537
|
+
print(self.TAG + "didEnd params: " + directCall)
|
|
537
538
|
sendEventWithName(eventName: RNSendBirdCalls.onEnded, params: params)
|
|
538
539
|
CXCallManager.shared.endCall(for: callId, endedAt: Date(), reason: directCall.endResult)
|
|
539
540
|
guard let callLog = directCall.callLog else { return }
|