Skip to content
Snippets Groups Projects
Commit adf0806c authored by Kamal Bramwell's avatar Kamal Bramwell
Browse files

Updated handing of phone in backup report

parent cfb43526
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ class BindingsBackupHandler(private val preferences: PreferencesRepository) {
ExtrasJson(
user.getUsernameFact(false),
user.getEmailFact(false),
user.getPhoneFact(false)
user.getPhoneFact(true)
).toString()
)
preferences.isUserProfileBackedUp = true
......
......@@ -32,10 +32,7 @@ data class BackupReport(
}
val userPhone: String? get() = userData?.userPhone
val phoneStringified: String? get() = userPhone?.run {
if (isNotEmpty()) "E$this"
else this
}
val phoneStringified: String? get() = userPhone
fun getContacts(): ByteArray = Gson().toJson(contacts).encodeToByteArray()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment