mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 04:28:35 +00:00
Fix bug with re-opting into PINs.
This commit is contained in:
@@ -51,6 +51,7 @@ class SvrValues internal constructor(store: KeyValueStore) : SignalStoreValues(s
|
|||||||
store.beginWrite()
|
store.beginWrite()
|
||||||
.putString(PIN, pin)
|
.putString(PIN, pin)
|
||||||
.putString(LOCK_LOCAL_PIN_HASH, localPinHash(pin))
|
.putString(LOCK_LOCAL_PIN_HASH, localPinHash(pin))
|
||||||
|
.putBoolean(OPTED_OUT, false)
|
||||||
.commit()
|
.commit()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -60,6 +61,7 @@ class SvrValues internal constructor(store: KeyValueStore) : SignalStoreValues(s
|
|||||||
store.beginWrite()
|
store.beginWrite()
|
||||||
.putString(PIN, pin)
|
.putString(PIN, pin)
|
||||||
.putString(LOCK_LOCAL_PIN_HASH, localPinHash(pin))
|
.putString(LOCK_LOCAL_PIN_HASH, localPinHash(pin))
|
||||||
|
.putBoolean(OPTED_OUT, false)
|
||||||
.commit()
|
.commit()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user