Fix possible backup validation error.

This commit is contained in:
Greyson Parrelli
2024-12-06 11:54:42 -05:00
parent 46c93760b3
commit ca17b50d35

View File

@@ -65,8 +65,8 @@ fun RecipientTable.getContactsForBackup(selfId: Long): ContactArchiveExporter {
""" """
${RecipientTable.TYPE} = ? AND ( ${RecipientTable.TYPE} = ? AND (
${RecipientTable.ACI_COLUMN} NOT NULL OR ${RecipientTable.ACI_COLUMN} NOT NULL OR
(${RecipientTable.PNI_COLUMN} NOT NULL AND ${RecipientTable.E164} NOT NULL) OR (${RecipientTable.PNI_COLUMN} NOT NULL AND ${RecipientTable.E164} NOT NULL AND ${RecipientTable.E164} != 0) OR
${RecipientTable.E164} NOT NULL (${RecipientTable.E164} NOT NULL AND ${RecipientTable.E164} != 0)
) )
""", """,
RecipientTable.RecipientType.INDIVIDUAL.id RecipientTable.RecipientType.INDIVIDUAL.id