Allow PNI-only contact inserts.

This commit is contained in:
Greyson Parrelli
2023-08-17 09:14:58 -04:00
parent 15204a2c84
commit 74d5faf3fa
3 changed files with 28 additions and 26 deletions

View File

@@ -445,7 +445,7 @@ open class RecipientTable(context: Context, databaseHelper: SignalDatabase) : Da
@VisibleForTesting
fun getAndPossiblyMerge(aci: ACI?, pni: PNI?, e164: String?, pniVerified: Boolean = false, changeSelf: Boolean = false): RecipientId {
require(aci != null || e164 != null) { "Must provide an ACI or E164!" }
require(aci != null || pni != null || e164 != null) { "Must provide an ACI, PNI, or E164!" }
val db = writableDatabase
var transactionSuccessful = false