Fix change view model test.

Co-authored-by: Cody Henthorne <cody@signal.org>
This commit is contained in:
Nicholas Tinsley
2024-06-04 12:31:10 -04:00
committed by Cody Henthorne
parent 30b339a482
commit 015548613a
4 changed files with 19 additions and 3 deletions

View File

@@ -6,6 +6,7 @@
package org.thoughtcrime.securesms.pin
import android.app.backup.BackupManager
import androidx.annotation.VisibleForTesting
import androidx.annotation.WorkerThread
import org.signal.core.util.Stopwatch
import org.signal.core.util.logging.Log
@@ -359,7 +360,8 @@ object SvrRepository {
}
@WorkerThread
private fun restoreMasterKeyPreRegistration(svr: SecureValueRecovery, credentials: AuthCredentials?, userPin: String): RestoreResponse {
@VisibleForTesting
fun restoreMasterKeyPreRegistration(svr: SecureValueRecovery, credentials: AuthCredentials?, userPin: String): RestoreResponse {
return if (credentials == null) {
RestoreResponse.Missing
} else {