Resume only if there is no active call

This commit is contained in:
Juha Heinanen
2026-04-03 17:57:46 +03:00
parent 8da18f9401
commit 3f5c28e8e2

View File

@ -1540,15 +1540,18 @@ private fun CallRow(
onClick = {
val connection = ConnectionService.connections[call.callp]
if (call.onhold) {
Log.d(
TAG,
"AoR ${call.ua.account.aor} resuming call ${call.callp} with ${call.callUri.value}"
)
if (connection != null)
connection.onUnhold()
else
call.resume()
} else {
if (!Call.isAnyCallActive(ctx)) {
Log.d(
TAG,
"AoR ${call.ua.account.aor} resuming call ${call.callp} with ${call.callUri.value}"
)
if (connection != null)
connection.onUnhold()
else
call.resume()
}
}
else {
Log.d(
TAG,
"AoR ${call.ua.account.aor} holding call ${call.callp} with ${call.callUri.value}"