For #13361: Prevent Sentry usage behind isSentryEnabled
parent
dbc1001d03
commit
a1b7e61d36
|
@ -272,7 +272,8 @@ class Core(private val context: Context) {
|
||||||
private val passwordsEncryptionKey by lazy {
|
private val passwordsEncryptionKey by lazy {
|
||||||
getSecureAbove22Preferences().getString(PASSWORDS_KEY)
|
getSecureAbove22Preferences().getString(PASSWORDS_KEY)
|
||||||
?: generateEncryptionKey(KEY_STRENGTH).also {
|
?: generateEncryptionKey(KEY_STRENGTH).also {
|
||||||
if (context.settings().passwordsEncryptionKeyGenerated) {
|
if (context.settings().passwordsEncryptionKeyGenerated &&
|
||||||
|
isSentryEnabled()) {
|
||||||
// We already had previously generated an encryption key, but we have lost it
|
// We already had previously generated an encryption key, but we have lost it
|
||||||
Sentry.capture("Passwords encryption key for passwords storage was lost and we generated a new one")
|
Sentry.capture("Passwords encryption key for passwords storage was lost and we generated a new one")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue