mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 00:29:11 +01:00
Fix change view model test.
Co-authored-by: Cody Henthorne <cody@signal.org>
This commit is contained in:
committed by
Cody Henthorne
parent
30b339a482
commit
015548613a
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user