During migration, support recipient id of "-1"

Fixes #6843
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-08-01 18:45:13 -07:00
parent 6ff9d3cc72
commit 9a55632202

View File

@ -920,6 +920,8 @@ public class DatabaseFactory {
if (resolved != null && resolved.moveToFirst()) {
String address = resolved.getString(0);
addresses[i] = numberMigrator.migrate(address);
} else if (recipientIds[i].equals("-1")) {
addresses[i] = "Unknown";
} else {
throw new AssertionError("Unable to resolve: " + recipientIds[i]);
}
@ -989,6 +991,8 @@ public class DatabaseFactory {
if (resolved != null && resolved.moveToFirst()) {
String address = resolved.getString(0);
addresses[i] = numberMigrator.migrate(address);
} else if (recipientIds[i].equals("-1")) {
addresses[i] = "Unknown";
} else {
throw new AssertionError("Unable to resolve: " + recipientIds[i]);
}