Skip to content

Commit

Permalink
Make AuthBundle nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-daily committed Dec 11, 2024
1 parent a7e38f5 commit ec8d1e3
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,16 @@ class DailyTransport(
}
}

override fun connect(authBundle: AuthBundle): Future<Unit, RTVIError> =
override fun connect(authBundle: AuthBundle?): Future<Unit, RTVIError> =
thread.runOnThreadReturningFuture {

if (authBundle == null) {
return@runOnThreadReturningFuture resolvedPromiseErr(
thread,
RTVIError.OtherError("Auth request cannot be skipped -- please ensure baseUrl and a connect endpoint are set")
)
}

Log.i(TAG, "connect(${authBundle.data})")

val dailyBundle = try {
Expand Down

0 comments on commit ec8d1e3

Please sign in to comment.