Updating the log in ssoAuthDone method to improve privacy

This commit is contained in:
Maxime NATUREL 2022-09-22 11:17:49 +02:00
parent 854a604fbe
commit c9eaf30057

View file

@ -32,15 +32,15 @@ class PendingAuthHandler @Inject constructor(
private val matrix: Matrix,
private val activeSessionHolder: ActiveSessionHolder,
) {
var uiaContinuation: Continuation<UIABaseAuth>? = null
var pendingAuth: UIABaseAuth? = null
fun ssoAuthDone() {
Timber.d("ssoAuthDone $pendingAuth , continuation: $uiaContinuation")
pendingAuth?.let {
Timber.d("ssoAuthDone, resuming action")
uiaContinuation?.resume(it)
} ?: run {
Timber.d("ssoAuthDone, cannot resume: no pendingAuth")
uiaContinuation?.resumeWithException(IllegalArgumentException())
}
}