From c9eaf3005706693ed6093211160f89659627953a Mon Sep 17 00:00:00 2001 From: Maxime NATUREL Date: Thu, 22 Sep 2022 11:17:49 +0200 Subject: [PATCH] Updating the log in ssoAuthDone method to improve privacy --- .../java/im/vector/app/features/auth/PendingAuthHandler.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/auth/PendingAuthHandler.kt b/vector/src/main/java/im/vector/app/features/auth/PendingAuthHandler.kt index b986090e50..28a6f4b256 100644 --- a/vector/src/main/java/im/vector/app/features/auth/PendingAuthHandler.kt +++ b/vector/src/main/java/im/vector/app/features/auth/PendingAuthHandler.kt @@ -32,15 +32,15 @@ class PendingAuthHandler @Inject constructor( private val matrix: Matrix, private val activeSessionHolder: ActiveSessionHolder, ) { - var uiaContinuation: Continuation? = 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()) } }