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 matrix: Matrix,
private val activeSessionHolder: ActiveSessionHolder, private val activeSessionHolder: ActiveSessionHolder,
) { ) {
var uiaContinuation: Continuation<UIABaseAuth>? = null var uiaContinuation: Continuation<UIABaseAuth>? = null
var pendingAuth: UIABaseAuth? = null var pendingAuth: UIABaseAuth? = null
fun ssoAuthDone() { fun ssoAuthDone() {
Timber.d("ssoAuthDone $pendingAuth , continuation: $uiaContinuation")
pendingAuth?.let { pendingAuth?.let {
Timber.d("ssoAuthDone, resuming action")
uiaContinuation?.resume(it) uiaContinuation?.resume(it)
} ?: run { } ?: run {
Timber.d("ssoAuthDone, cannot resume: no pendingAuth")
uiaContinuation?.resumeWithException(IllegalArgumentException()) uiaContinuation?.resumeWithException(IllegalArgumentException())
} }
} }