0
0
mirror of https://github.com/thunderbird/thunderbird-android.git synced 2024-09-20 12:12:15 +02:00

Export identities that have no description

Identities must have an email address but all of the other fields are
optional, so email address should be used to determine identity keys.

Fixes #6932
This commit is contained in:
Simon Arlott 2023-05-27 14:05:42 +01:00
parent f53d73630e
commit d105ba0fbb
No known key found for this signature in database
GPG Key ID: DF001BFD83E75990

View File

@ -206,7 +206,7 @@ class SettingsExporter(
if (hasThirdPart) {
val secondPart = keyPart.substring(0, indexOfLastDot)
val thirdPart = keyPart.substring(indexOfLastDot + 1)
if (secondPart == IDENTITY_DESCRIPTION_KEY) {
if (secondPart == IDENTITY_EMAIL_KEY) {
// This is an identity key. Save identity index for later...
thirdPart.toIntOrNull()?.let {
identities.add(it)