mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-22 02:36:55 +00:00
Fix crash when registering with an existing recipient with the same PNI.
This commit is contained in:
committed by
Alex Hart
parent
8648c74221
commit
15254ee720
@@ -1747,6 +1747,7 @@ open class RecipientDatabase(context: Context, databaseHelper: SignalDatabase) :
|
||||
private fun removePhoneNumber(recipientId: RecipientId, db: SQLiteDatabase) {
|
||||
val values = ContentValues().apply {
|
||||
putNull(PHONE)
|
||||
putNull(PNI_COLUMN)
|
||||
}
|
||||
db.update(TABLE_NAME, values, ID_WHERE, SqlUtil.buildArgs(recipientId))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user