Skip to content

Commit

Permalink
Invoke onError when not null (#1243)
Browse files Browse the repository at this point in the history
  • Loading branch information
liviu-timar authored Dec 4, 2024
1 parent ef230f9 commit c1bc2a2
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -779,11 +779,13 @@ public abstract class StreamCallActivity : ComponentActivity() {

if (cid == null) {
val e = IllegalArgumentException("CallActivity started without call ID.")
logger.e(
e,
) { "Failed to initialize call because call ID is not found in the intent. $intent" }
onError?.let {
} ?: throw e

logger.e(e) {
"Failed to initialize call because call ID is not found in the intent. $intent"
}

onError?.invoke(e) ?: throw e

// Finish
return
}
Expand Down

0 comments on commit c1bc2a2

Please sign in to comment.