fix: remove end call from busy

This commit is contained in:
jubb
2021-12-08 17:30:05 +11:00
parent 38a8738674
commit 9c21cfa7b8
2 changed files with 0 additions and 6 deletions

View File

@@ -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) {

View File

@@ -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)
}