mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 12:38:33 +00:00
Address possible invalid e164's in storage service splits.
This commit is contained in:
committed by
Cody Henthorne
parent
8c5811581e
commit
ec6448bd1b
@@ -2370,7 +2370,10 @@ open class RecipientTable(context: Context, databaseHelper: SignalDatabase) : Da
|
||||
val recipientId = getByAci(aci).getOrNull() ?: return
|
||||
val record = getRecord(recipientId)
|
||||
|
||||
if (record.pni == null && record.e164 == null) {
|
||||
val pni = record.pni
|
||||
val e164 = record.e164?.takeIf { SignalE164Util.isPotentialE164(it) }
|
||||
|
||||
if (pni == null && e164 == null) {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -2385,7 +2388,7 @@ open class RecipientTable(context: Context, databaseHelper: SignalDatabase) : Da
|
||||
.where("$ID = ?", record.id)
|
||||
.run()
|
||||
|
||||
getAndPossiblyMerge(null, record.pni, record.e164)
|
||||
getAndPossiblyMerge(null, pni, e164)
|
||||
}
|
||||
|
||||
fun processIndividualCdsLookup(aci: ACI?, pni: PNI, e164: String): RecipientId {
|
||||
|
||||
Reference in New Issue
Block a user