Fix reglock setting incorrect during backup restore.

This commit is contained in:
Cody Henthorne
2025-09-10 12:57:25 -04:00
parent dd67398a70
commit ea772cbf55
4 changed files with 10 additions and 4 deletions

View File

@@ -219,7 +219,7 @@ object RegistrationRepository {
NotificationManagerCompat.from(context).cancel(NotificationIds.UNREGISTERED_NOTIFICATION_ID)
val masterKey = if (data.masterKey != null) MasterKey(data.masterKey.toByteArray()) else null
SvrRepository.onRegistrationComplete(masterKey, data.pin, hasPin, data.reglockEnabled)
SvrRepository.onRegistrationComplete(masterKey, data.pin, hasPin, data.reglockEnabled, false)
AppDependencies.resetNetwork()
AppDependencies.startNetwork()