Fixes deserialization issues with old jsons that didn't have these properties
This commit is contained in:
@@ -77,9 +77,9 @@ private const val DEBUG_PREFERENCES_NAME = "debug_prefs"
|
|||||||
@Serializable
|
@Serializable
|
||||||
data class AccountInfo(
|
data class AccountInfo(
|
||||||
val npub: String,
|
val npub: String,
|
||||||
val hasPrivKey: Boolean,
|
val hasPrivKey: Boolean = false,
|
||||||
val loggedInWithExternalSigner: Boolean,
|
val loggedInWithExternalSigner: Boolean = false,
|
||||||
val isTransient: Boolean,
|
val isTransient: Boolean = false,
|
||||||
)
|
)
|
||||||
|
|
||||||
private object PrefKeys {
|
private object PrefKeys {
|
||||||
|
|||||||
Reference in New Issue
Block a user