fix bug of call
This commit is contained in:
@@ -493,15 +493,17 @@ class CallChatCenter private constructor() : IBizCallChat.IBizCallBack, IVoiceCo
|
||||
* 2.如果当前正在打电话中,则拒绝
|
||||
*/
|
||||
override fun showIncomingCall(userInfo: UserInfo) {
|
||||
Logger.d(TAG, "showIncomingCall===userInfo: $userInfo")
|
||||
currentUserInfo = userInfo
|
||||
if (callChatManager.isCalling() || callingWindowManager.isIncomingWindowShow()) {
|
||||
log(TAG, "已在通话进程中,准备拒绝他 ---> ")
|
||||
refuseCall(userInfo.sn)
|
||||
} else {
|
||||
log(TAG, "有人打来电话,准备显示 ---> ${UserInfoHelper.currentRoomId}")
|
||||
log(TAG, "有人打来电话,准备显示 房间号---> ${UserInfoHelper.currentRoomId} , 用户---> ${currentUserInfo!!.sn}")
|
||||
callingWindowManager.showIncomingView({
|
||||
callChatManager.answerInvoke(userInfo.sn)
|
||||
callChatManager.answerInvoke(currentUserInfo!!.sn)
|
||||
}, {
|
||||
refuseCall(userInfo.sn)
|
||||
refuseCall(currentUserInfo!!.sn)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ class CallChatManager(iBizCallChat: IBizCallChat.IBizCallBack) : ICallResponse {
|
||||
}
|
||||
|
||||
fun answerInvoke(sn: String) {
|
||||
Logger.i(TAG, "answerInvoke")
|
||||
Logger.i(TAG, "answerInvoke sn : $sn")
|
||||
IMCallManager.answer(sn, this)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user