mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-27 14:30:42 +00:00
fix: remove end call from busy
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user