fix: fixes the incoming hangup logic for linked devices

This commit is contained in:
jubb 2022-04-05 10:58:12 +10:00
parent d8283a801f
commit 3b1ee2d28b
1 changed files with 1 additions and 1 deletions

View File

@ -546,7 +546,7 @@ class WebRtcCallService: Service(), CallManager.WebRtcListener {
private fun handleResponseMessage(intent: Intent) {
try {
val recipient = getRemoteRecipient(intent)
if (callManager.isCurrentUser(recipient) && callManager.currentConnectionState in CallState.OUTGOING_STATES) {
if (callManager.isCurrentUser(recipient) && callManager.currentConnectionState in CallState.CAN_DECLINE_STATES) {
handleLocalHangup(intent)
return
}