fix: remove end call from busy

pull/864/head
jubb 4 years ago
parent 38a8738674
commit 9c21cfa7b8

@ -294,10 +294,8 @@ class WebRtcCallService: Service(), CallManager.WebRtcListener {
private fun handleBusyCall(intent: Intent) {
val recipient = getRemoteRecipient(intent)
val callId = getCallId(intent)
val callState = callManager.currentConnectionState
callManager.handleBusyCall(callId, recipient)
insertMissedCall(recipient, false)
if (callState == STATE_IDLE) {

@ -627,10 +627,6 @@ class CallManager(context: Context, audioManager: AudioManagerCompat, private va
}
}
fun handleBusyCall(callId: UUID, recipient: Recipient): Promise<Unit, Exception> {
return MessageSender.sendNonDurably(CallMessage.endCall(callId), recipient.address)
}
fun handleAudioCommand(audioCommand: AudioManagerCommand) {
signalAudioManager.handleCommand(audioCommand)
}

Loading…
Cancel
Save